doPayment() Difficulties

Functionality discussions and feature requests

Moderators: hugo, alexandre, rmvanarkel

Post Reply
gdkobla
Posts: 26
Joined: Mon Feb 27, 2012 10:10 am

doPayment() Difficulties

Post by gdkobla »

Hi,

I have been able to deploy the webshop payment in php and now need to do something with direct payment by doing a doPayment() method.
I'm using the same webclient that I set up for the webshop payment for this purpose as well.
Now I keep getting this error :

"Error Doing a payment: SoapFault exception: [ns1:unauthorized-access] Server error: unauthorized-access in C:\wamp\www\ecash\pay.php:115 Stack trace: #0 C:\wamp\www\ecash\pay.php(115): SoapClient->__call('doPayment', Array) #1 C:\wamp\www\ecash\pay.php(115): SoapClient->doPayment(Array) #2 {main}"

This is how my code looks like

require_once 'basic.php';
$cyclos = new Cyclos();
$webShopService = $cyclos->service('payment');

// Setup the payment parameters
$params = new stdclass();
$params->fromSystem = true;
$params->toMember = xxxx;
$params->amount = $amount;

$status = $webShopService->doPayment(array('params' => $params))->return;

Is there anything that I'm missing.
Thanks in advance.

simonjwoolf
Posts: 113
Joined: Mon May 28, 2012 8:49 am

Re: doPayment() Difficulties

Post by simonjwoolf »

This might be a stupid question, but isn't that suggesting that there's a missing webserviceclient setting in your cyclos instance?
---
Simon Woolf
Cyclos Consultant

gdkobla
Posts: 26
Joined: Mon Feb 27, 2012 10:10 am

Re: doPayment() Difficulties

Post by gdkobla »

Hi Simon
I have a lot of respect for myself,
thank you.

simonjwoolf
Posts: 113
Joined: Mon May 28, 2012 8:49 am

Re: doPayment() Difficulties

Post by simonjwoolf »

I meant that my question might be stupid - not yours. Never mind . . .
---
Simon Woolf
Cyclos Consultant

gdkobla
Posts: 26
Joined: Mon Feb 27, 2012 10:10 am

Re: doPayment() Difficulties

Post by gdkobla »

Thank you.

Post Reply