doPayment() doesn't work

Functionality discussions and feature requests

Moderators: hugo, alexandre, rmvanarkel

Post Reply
Guido
Posts: 4
Joined: Thu Nov 29, 2012 8:42 am

doPayment() doesn't work

Post 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?

alexandre
Posts: 900
Joined: Wed Sep 06, 2006 9:06 am

Re: doPayment() doesn't work

Post 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.
Alexandre Caurrinhos
Cyclos development team.

Guido
Posts: 4
Joined: Thu Nov 29, 2012 8:42 am

Re: doPayment() doesn't work

Post 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

alexandre
Posts: 900
Joined: Wed Sep 06, 2006 9:06 am

Re: doPayment() doesn't work

Post by alexandre »

Hi,

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

Regards.
Alexandre Caurrinhos
Cyclos development team.

Post Reply