You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've forked your fork :-)
and trying to integrate all S2S calls (checkCard, verifyCard, delete, refund, settle, etc.).
Could you please give an example on how to change the init of "$gestpay" object (as in the README) to be able to call your pagam method? Something like this?
Thanks.
The text was updated successfully, but these errors were encountered:
You have to use the WSS2SSoapClient and WSS2S classes. Here is a payment
example (without error handling):
(if you improve on the documentation I will surely accept a pull request)
getSoapClient());
// Build request parameters.
$parameters = new PagamParameter();
$parameters->shopLogin = '...';
$parameters->uicCode = Currency::EUR;
$parameters->amount = 99.99;
$parameters->shopTransactionId = '123'; // Order id
// If you already obtained a token with $wss2s->requestToken...
$parameters->tokenValue = 'MYTOKEN';
// ...Else if you provide credit card data directly...
$parameters->cardNumber = '...';
$parameters->expiryMonth = 12;
$parameters->expiryYear = 2017;
$parameters->cvv = '123';
$parameters->withAuth = 'Y';
// EndelWar\GestPayWS\Response\PagamResponse;
$response = $wss2s->pagam($parameters);
$ok = $response->isOK();
// Use getter to extract data from Response. E.g.:
$response->get('BankTransactionID');
2015-12-29 17:25 GMT+01:00 Cristian Pascottini notifications@github.com:
> I've forked your fork https://github.com/cristianp6/GestPayWS :-)
> and trying to integrate all S2S calls (checkCard, verifyCard, delete,
> refund, settle, etc.).
>
> Could you please give an example on how the init of "$gestpay" object has
> to change to be able to call your pagam method
> https://github.com/peterpoe/GestPayWS/blob/master/src/WSS2S.php#L29?
>
> Thanks.
>
> —
> Reply to this email directly or view it on GitHub
> https://github.com//issues/1.
I've forked your fork :-)
and trying to integrate all S2S calls (checkCard, verifyCard, delete, refund, settle, etc.).
Could you please give an example on how to change the init of "$gestpay" object (as in the README) to be able to call your pagam method? Something like this?
Thanks.
The text was updated successfully, but these errors were encountered: