Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use your WSS2S class? #1

Open
cristianp6 opened this issue Dec 29, 2015 · 1 comment
Open

How to use your WSS2S class? #1

cristianp6 opened this issue Dec 29, 2015 · 1 comment

Comments

@cristianp6
Copy link

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.

@peterpoe
Copy link
Owner

peterpoe commented Jan 7, 2016

Hi

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants