Page 1 of 1

doPayment() doesn't work

Posted: Fri Nov 30, 2012 11:07 am
by Guido
Hello,
I can create a ticket with the service "webshop" and I can successfully get account information with service "account". But when I try to use the service "payment", I get an error.
here is my code:

Code: Select all

 require_once 'cyclos.php';
   		    $cyclos = new Cyclos();
  	 	    $webShopService = $cyclos->service('payment');
        	$params = new stdclass();
        	$params->fromMember = 'testkonto'   ;                                     
        	$params->credentials = 'testkonto'  ;                                     
        	$params->toMember = 'user1';
        	$params->amount = 5;
        	$params->description = 'testueberweisung';
        	try { $status = $webShopService->doPayment(array('params' => $params))->return;
        	
        	} catch (SoapFault $e){
        		print_r($e);
        	}
I get the error "Server error: unauthorized-access "
I checked my web services clients and the channels, they allow payments.
I use Cyclos 3.7.1 on XAMPP localhost.

Any ideas?

Re: doPayment() doesn't work

Posted: Mon Dec 03, 2012 8:17 am
by alexandre
Hi,

Check if the member group has access to this channel, and if he has permissions to make payments using the transfer type specified in the channel. Also the transfer type needs to be enable for use with this channel.

Regards.

Re: doPayment() doesn't work

Posted: Mon Dec 17, 2012 5:30 am
by Guido
Hello Alexandre,
thank you very much for your reply. I checked everything as you advised, but still no luck. When I create the channel, I check the check box 'supports payment request'. It asks then for the web service url. What do I have to enter? I tried so many possible entries.
best regards
Guido

Re: doPayment() doesn't work

Posted: Mon Dec 17, 2012 8:22 am
by alexandre
Hi,

This is for use with the SMS module. http://www.cyclos.org/wiki/index.php/Introduction

Regards.