Shopeepay
DOKU has partnered with various e-money providers and one of them is ShopeePay to provide E-Money Payment. Learn more about how DOKU can help you integrate with ShopeePay here.
ShopeePay only compatible for Mobile Integration
ShopeePay integration is app-to-app redirection meaning that it will only available for mobile users
Integration steps
Here is the overview of how to integrate with ShopeePay:
Setup
Return URL
Create order
Redirect to ShopeePay payment page to complete the payment
Acknowledge payment result
ShopeePay Sequence Diagram
1. Setup Return URL
Return URL
Based on the flow, the customers will redirected back to your site after completing the payment on ShopeePay application. Therefore, please setup the return URL
:
Login to DOKU Back Office
Go to Configuration > E-Money
Click Configure button on ShopeePay channel
Input the
Payment Return URL
Click Save button
2. Create order
To create an order, you will need to hit this API through your Backend:
API Request
Here is the sample of request header to create an order:
Request Header Explanation
Here is a sample of request body to create an order:
Request Body Explanation
API Response
After hitting the above API request, DOKU will give the response.
Response Header Explanation
Here is the sample of response body:
Response Body Explanation
2. Redirect to ShopeePay payment page to complete the payment
ShopeePay will display the order details in the Shopee App
Customer will check the payment amount and input ShopeePay PIN / Biometrics to complete the payment
ShopeePay returns the transaction result and the user is redirected to payment successful page. From the payment success page in ShopeePay, user can jump back to the Merchant's app using the
return_url
to view their order status.
3. Acknowledge payment result
DOKU will send HTTP Notification to your defined Notification URL
. Learn how to handle the notification from DOKU:
Additional features
We provide various addtional features to suited your needs. Learn more here.
Online Refund
To request a refund, you will need to hit this API through your backend:
API Request
Here is the sample of request header to generate payment URL:
Request Header Explanation
Here is the sample request body to request a refund:
Request Body Explanation
API Response
After hitting the above API request, DOKU will give the response.
Here is the sample response header:
Response Header Explanation
Here is the sample of response body :
Response Body Explanation
Split Settlement
If you are a platform or a marketplace, you can use this feature to settle the funds to your sellers or partners programmatically, save many operational efforts.
Last updated