Page 1 of 1

doPayment() Difficulties

Posted: Mon Oct 22, 2012 1:53 pm
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.

Re: doPayment() Difficulties

Posted: Tue Oct 30, 2012 1:44 pm
by simonjwoolf
This might be a stupid question, but isn't that suggesting that there's a missing webserviceclient setting in your cyclos instance?

Re: doPayment() Difficulties

Posted: Tue Oct 30, 2012 7:53 pm
by gdkobla
Hi Simon
I have a lot of respect for myself,
thank you.

Re: doPayment() Difficulties

Posted: Wed Oct 31, 2012 6:57 am
by simonjwoolf
I meant that my question might be stupid - not yours. Never mind . . .

Re: doPayment() Difficulties

Posted: Wed Oct 31, 2012 1:57 pm
by gdkobla
Thank you.