Redirect Integration
Rocketfuel-hosted checkout web UI is the simplest and quickest way of using the Rocketfuel services. The merchant interested in obtaining this solution must submit their cart data to generate an invoice.
The API response returns a URL where the shopper will redirect to the payment options. After the successful payment, the shopper will return to the merchant's website.
POST
/hosted-page
Here is the sample of request payload.
{ amount, cart{ id, price, name, quantity, key, totalPrice, isSubscription, frequency, merchantSubscriptionId }, currency, order, redirectUrl, customerInfo{ name, email, phone, address }, shippingAddress{ firstname, lastname, phoneNo, address1, address2, state, city, zipcode, country, landmark, email } }
isSubscription: true/false
frequency: weekly/monthly/quarterly/half-yearly/yearly
merchantSubscriptionId: Subscription id for merchant system. This key will use to communicate the recurring payment status.
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | "Bearer" + merchant access token |
Content-Type | String | application/json |
Request Body
Name | Type | Description |
---|---|---|
amount | String | |
cart | Array | id, price, name, quantity, key, totalPrice, isSubscription, frequency, merchantSubscriptionId |
currency | String | USD/EUR |
order | String | Order id from the merchant's system |
redirectUrl | String | Return URL of merchant's website, in case of RKFL-hosted checkout integrated |
customerInfo | Array | name, email, phone, address |
shippingAddress | Array | firstname, lastname, phoneNo, address1, address2, state, city, zipcode, country, landmark, email |
Last updated