-
Notifications
You must be signed in to change notification settings - Fork 0
Accept a Swik
When you create a swik:
-
if you set
setSendEmail
totrue
you will have an email at the address you gave insetClientEmail('the_email_address')
with a link to accept the Swik. -
If you set
setSendEmail
tofalse
you can still have the accepting address as a return of your API call ex.:
$result = $swkAPI->newSwik($swik);
echo $result['acceptUrl'];
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).
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.