API to generate vanilla and subscription payment links.
Payment Status
Once your customer completes a payment, the redirect URL will be appended with the following params
- createdAt: The date the charge was captured at
- paymentLinkId: The payment link id
- status: indicates the payment status, whether captured or failed
- transactionId: The transaction / charge id related to the payment
You may also get notified about a payment's status by setting up a webhook. Details here
A third approach to check the transaction status is by calling our transaction info API here
Sample redirect url after a successful payment
https://www.mamopay.com/?createdAt=2023-08-09-16-42-35&paymentLinkId=MB-LINK-3216D27C9D&status=captured&transactionId=MPB-CHRG-BEE56990A9
For Payment Testing
To make payments with different use cases on the test environment, you can use the card details below:
Card Number | Payment Status | 3DS | Address Required | Country |
---|---|---|---|---|
4659 1055 6905 1157 | Success | X | X | GB |
4242 4242 4242 4242 | Success | ✓ | X | GB |
4111 1111 1111 1111 | Success | ✓ | ✓ | US |
4567 3613 2598 1788 | Fail | X | X | GB |
4095 2548 0264 2505 | Fail | X | ✓ | US |
- CVV: 123
- Expiry: 01/28
3DS
If prompted for a password, enter Checkout1!
Subscriptions
When setting up subscriptions, if both end_date and payment_quantity were defined, end_date takes precedence.