With User Interface
Requirements:
Integrate the OneShot Experience flow within the Deposit Creation Endpoint for credit and debit cards payment methods.
Install the Cards SDK.
1. Create a Deposit
It must be a deposit for a credit or debit card payment method and within the OneShot Experience, therefore all the required payer information should be included in the request.
Additionally, merchants opting to use our Cards SDK should send the parameter token_requested
with value true
.
Example request
Example response
The checkout_token
contains the information within the context of the generated deposit. This information will be decrypted and consumed by the SDK in order to adequate the checkout experience.
2. Instantiate Cards SDK
Now you need to instantiate the already installed Cards SDK. Here you will find all the technical aspects within instantiation. Remember to retrieve your publicKey from the Merchant Panel, and define the proper environment.
3. Display the Cards SDK component
Now you can display the CreditCardForm.
In order to do so, you need to send in the authToken
parameter, the value obtained in the checkout_token
of the first step alongside the rest of the parameters (country
, onTokenGenerationError
and onBack
).
The component will take care of the deposit creation by collecting the payer's credit card, and then processing the transaction with the acquirer.
4. Retrieve the Deposit final status
Everytime that the deposit changes it's status, you will receive a webhook notification with the deposit_id
for you to retrieve the Status.
Once the user clicks in the Complete button, we will process the transaction and you will receive such webhook.
Last updated