Payment Gateway Development
Callback
This is the step that allows the invoice's status to be processed as "paid" upon notification by the payment service provider that the payment has been completed. Here are the cases where you should use the function: Forwarding the status of the payment to ...
Checkout
A variable with data type "array" in the module class file. It contains "customer info" and "payment gateway info". When you are on the payment page, it comes to your class as defined. It has a unique ID number. It is saved in the "checkouts" table on the da...
3D Secure
In "Merchant, Tokenized, Subscription" methods, you may need to redirect to a page or show HTML content for payment confirmation. If your goal is to redirect to a page, the return value from the "capture" function should be as follows. return [ 'status' ...
Keeping Custom Data
You may need to retain information obtained from the payment service provider before referring the customer to the payment service provider. To do this, follow the instructions below. Saving Data The "custom_data" function takes two parameters. The first par...
Obtaining Items
You can use the "getItems" function to get the items in the cart and the items in the invoice. The function passes an "array" as a return.