Create payment link
A comprehensive testing strategy is crucial to ensure the successful integration of SmartpayGenie into your application. Here are some key testing types:
Create a plan
https://api.smartpaygenie.com/payment-links
'POST'
Request parameters
Parameters
Type
Description
Required
amount
Number
Payment amount
Yes
currency
String
ISO 4217 currency code
Yes
description
String
Description of the payment
Yes
redirect-url
String
URL to redirect the customer after successful payment
Yes
metadata
Object
Additional metadata (optional)
No
Request Payload
JSON
{ "amount": "amount_1", "currency": "currency_1", "description": "description_1", "redirecturl": "redirecturl_1" }
Response
200 - OK successful response
{ "id": "subscription_id_1", "plan_id": "plan_id_1", "payment_link": "https://your-payment-gateway/pay/12345" }
Support
If you encounter any issues or have questions, please feel free to contact our dedicated
support team.
We are committed to providing you with the best possible experience and support.