-
Notifications
You must be signed in to change notification settings - Fork 4
[Product] Features
- Get installment options when checkout using Indodana
- Perform checkout to Indodana payment page when proceeding the checkout
- Update merchant configuration
- Notify pending transaction from Indodana
For more details on how each feature supposed to do, see Test Cases
Most plugins (Woocommerce, Opencart, etc.) are actually doing the same things (checkout, get installment options, validate configuration). Therefore, it's better to centralize those operations on a single repository for easier maintenance.
As a result, the plugin's developer only needs to use it without worrying about the heavy lifting that's being done.
- Get installment options
- Perform checkout
- Validate merchant configuration
The front-end of the merchant configuration will be handled independently by the respective plugin. This feature only validates values that have been passed from the front-end
- Check whether the authorization token is valid
Used on
Notify Transaction
feature to determine whether it's incoming request is valid from Indodana
Some plugins (Magento, Opencart) will make API calls to Indodana API on its own instead of relying on IndodanaCommon
. These are the features that help the process:
- Generate checkout payload
- Get Indodana base URL
- Get Indodana auth token
- If not passed,
postalCode
onbillingAddress
,shippingAddress
andseller
will be00000
by default -
parentType
onCheckout
payload will always beSELLER
-
parentId
onCheckout
payload will be automatically filled based onsellerUrl
- We're assuming that it's only one store during configuration