Create order
Request Body
application/jsonRequiredThe request body(payload) includes the following fields:
signapi_secretcallbackURL
If you want to receive the customer back in your application after the transaction, you can provide a callback URL. Starpay will automatically redirect the user to your URL when the payment is completed successfully or Failed.
If you provide a callbackURL, StarPay will send the following response to that URL after a successful payment.
The error response for failed payments.
Do you know how to generate RSA signature (sign:)?
You can follow the RSA signature guide to get started.
If you follow the guide, you will receive a response in the following format
assign signature to sign property on the payload
amountRequirednumberdescriptionRequiredstringcurrencyRequiredstringcustomerNameRequiredstringcustomerPhoneNumberRequiredstringcallbackURLstring-If you want to receive the customer back in your application after the transaction, you can provide a callback URL. Starpay will automatically redirect the user to your URL when the payment is completed successfully.
customerEmailstring"email"expiredAtstringredirectUrlstringitemsRequiredarray<object>api_secretRequiredstringsignRequiredstringResponse Body
The request was successful, and a new resource was created.
TypeScript Definitions
Use the response body type in TypeScript.
statusRequiredstringtimestampRequiredstring"date-time"messageRequiredstringdataRequiredobject