Skip to content

Environments

There are 2 environments: staging and production.

Staging

All the initial setup, tests phase etc... have to be done on the staging environment. It is a sandbox where some behaviors of the plaftorm are mocked. For instance:

  • Purchase links cannot be sent by SMS. Only by email.
  • OTP control is disabled (OTP stands for One Time Password to check phone number is valid).
  • No control on amount of purchases, number of orders for a single buyer etc...

Staging backend host

https://staging.back.ecard.pledg.co

Staging frontend host

https://staging.front.ecard.pledg.co

Staging test cards

You can use test cards in the staging environment.

The expiration date should be in the future: 02/25 for instance.

The CVC can be any 3 digits number: 222 for instance.

The card number can be one of the following:

NumberDescription
4242424242424242Visa card - United States
4000000760000002Card from Brazil
4000002500003155To simulate 3DS Authentication (Complete/Fail)
4000000000009995To test the funnel with a card that is rejected for insufficient funds
4000000000009979To test the funnel with a card that is rejected because it's been declared as stolen
378282246310005American Express card

Additionnal test card numbers are available in the Stripe documentation.

The staging merchant dashboard can be found in https://staging.dashboard.ecard.pledg.co/#/

Many integration examples are available on the staging merchant demo.

The easiest way to integrate the solution is to copy/paste the code of the most relevant example and to adapt it to your particular needs.

Production

Production account creation is limited

You cannot create an account directly in production.

Production backend host

https://back.ecard.pledg.co

Production frontend host

https://front.ecard.pledg.co

Summary

What ?URL Staging and Production
Integration by Pluginhttps://s3-eu-west-1.amazonaws.com/pledg-assets/ecard-plugin/staging/plugin.min.js https://s3-eu-west-1.amazonaws.com/pledg-assets/ecard-plugin/master/plugin.min.js
Redirection to 1 merchanthttps://staging.front.ecard.pledg.co/purchase... https://front.ecard.pledg.co/purchase...
Redirection to 1 companyhttps://staging.front.ecard.pledg.co/payment_solutions... https://front.ecard.pledg.co/payment_solutions...
API payment schedulehttps://staging.back.ecard.pledg.co/api/users/me/merchants/.../simulate_payment_schedule https://back.ecard.pledg.co/api/users/me/merchants/.../simulate_payment_schedule
API refund (wire transfer)https://staging.back.ecard.pledg.co/api/purchases/.../credit_by_transfer... https://back.ecard.pledg.co/api/purchases/.../credit_by_transfer...
API purchase link creationhttps://staging.back.ecard.pledg.co/api/purchase_link... https://back.ecard.pledg.co/api/purchase_link...