Skip to content

Accept a Swik

JuniorFt edited this page Feb 8, 2017 · 1 revision

Accept a Swik

How do I know what the final user will see ?

When you create a swik:

  • if you set setSendEmail to true you will have an email at the address you gave in setClientEmail('the_email_address') with a link to accept the Swik.

  • If you set setSendEmail to false you can still have the accepting address as a return of your API call ex.:

$result = $swkAPI->newSwik($swik);
echo $result['acceptUrl'];

How I can fully test it ?

In the sandbox (development) environment you can accept a Swik by yourself.

Once you have clicked on the acceptance link, if you want to accept the Swik you will need to provide credit card information.

We set up a system with test credit cards and you can use one of them:

  • credit card number: 4706750000000009

  • credit card number: 4706750000000033

With these credit card numbers you can use any expiry date in the future.

The security code can be anything (or almost, see the Testing error part).

Testing error

You can simulate an error while you are accepting a swik.

For that you need to use the security code: 999

The same error could happen in the production environment if the client provide wrong information or has no money on his bank account.

<< Make a Direct Swik || Back to home