ℹ️ In the following link, PixelPay provides SDK's in different
technologies to facilitate merchant integration:
https://docs.pixelpay.app/docs/en/introduction
The Hosted Payments SandBox is an easy way to test your Hosted Payment API, as it simulates the scenarios that typically occur in a transaction.
1. Requirements and preparation:
In order to start, it is necessary to have a route already structured with the necessary fields. If you have not completed this step, you can visit the Hosted Payment API section, where we show you how to structure the fields necessary for queries.
Note that you can use this integration in any code language that supports HTTP/S
queries or implement a library capable of using a Request
and Response
type instance.
The link explains in detail how to structure the fields
necessary for queries:https://pixelpay.zendesk.com/hc/es-419/articles/360039834392-Hosted-Payment-Gateway
1.1. Key information:
Key ID: 1234567890
Hash: @s4ndb0x-abcd-1234-n1l4-p1x3l
Route for sending parameters in a SandBox environment:
https://{endpoint}/api/v2/transaction/hosted/sandbox GET/POST
Step 1:
Access the route with the parameters already structured.
URL example:
Only with required fields GET
Click on Secure Payment:
Image 1: View when accessing the Hosted Payment SandBox url.
In the link you can see the example of access to a correctly structured url:https://pixelpay.app/sandbox/ZvCAXse0zn/checkout/example?success=1&slug=sandbox&merchant=sandbox&payload=eyJfYW1vdW50IjoiMS4wMCIsIl9jYWxsYmFjayI6Imh0dHBzOlwvXC9lbmJ1ODh4dDFiZmMueC5waXBlZHJlYW0ubmV0XC8iLCJfY2FuY2VsIjoiaHR0cHM6XC9cL3d3dy5waXhlbC5oblwvIiwiX2NvbXBsZXRlIjoiaHR0cHM6XC9cL3d3dy5waXhlbC5oblwvIiwiX2VtYWlsIjoiaW5mb0BwaXhlbC5obiIsIl9maXJzdF9uYW1lIjoiUGl4ZWxQYXkiLCJfa2V5IjoiMTIzNDU2Nzg5MCIsIl9vcmRlcl9pZCI6IjEifQ%3D%3D&url=https%3A%2F%2Fpixelpay.app%2Fsandbox%2FZvCAXse0zn%2Fcheckout%2Fexample%3Fsuccess%3D0%26slug%3Dsandbox%26merchant%3Dsandbox%26payload%3DeyJfYW1vdW50IjoiMS4wMCIsIl9jYWxsYmFjayI6Imh0dHBzOlwvXC9lbmJ1ODh4dDFiZmMueC5waXBlZHJlYW0ubmV0XC8iLCJfY2FuY2VsIjoiaHR0cHM6XC9cL3d3dy5waXhlbC5oblwvIiwiX2NvbXBsZXRlIjoiaHR0cHM6XC9cL3d3dy5waXhlbC5oblwvIiwiX2VtYWlsIjoiaW5mb0BwaXhlbC5obiIsIl9maXJzdF9uYW1lIjoiUGl4ZWxQYXkiLCJfa2V5IjoiMTIzNDU2Nzg5MCIsIl9vcmRlcl9pZCI6IjEifQ%253D%253D
Step 2:
A screen will then appear showing the scenarios that can be simulated.
Image 2: Scenarios that can be simulated.
2.1. Simulate successful payment
Image 3: Simulation of a successful payment.
2.2. Execute callback
Displays a confirmation message informing that the data has been successfully sent to the Webhook address established in the field:_callback
To see more details of the _callback
field, click here.
Image 4: Simulation of callback execution.
The link explains the _callback
field in detail https://pixelpay.zendesk.com/hc/es-419/articles/360039834392-Hosted-Payment-Gateway#ref-callback
2.3. Simulate failed payment
Image 5: Simulation of a failed payment.
2.4. To cancel an order
Redirects to the URL assigned in the _cancel
parameter
To see more details of the _cancel
field, click here.
The link explains the_cancel
field in detail:https://pixelpay.zendesk.com/hc/es-419/articles/360039834392-Hosted-Payment-Gateway#ref-cancel
Comments
0 comments
Please sign in to leave a comment.