![](https://spicatech.in/wp-content/uploads/2023/12/Credit-Card-Payment-Processing.jpg)
![](https://spicatech.in/wp-content/uploads/2023/12/Capture.jpg)
Scenario :
- Creating an order with PaymentType= “CreditCard” with charges and taxes.
- After creating the order, we call requestCollection Api to authorize the total ordered amount.
- After Authorize the order, schedule and release the Order.
- After that creating the Shipment for the Order and Confirm the Shipment.
- Then we create a Shipment Invoice by calling the createShipmentInvoice Api.
- Next, we call the requestCollection Api to process the settlement for the Order and it update the payment status to Invoiced.
- Next, we call the executeCollection Api to “collect the request amount”.
- Finally, we call requestCollection Api to update the payment status to Paid.
CreateOrder :
![](https://spicatech.in/wp-content/uploads/2023/12/2.jpg)
Output :
<Order DocumentType=”0001″ EnterpriseCode=”Matrix” OrderHeaderKey=”20230825130846254017″ OrderNo=”526″/> |
Console :
- Create an order with the PaymentType “CreditCard”
- The Payment Status is “AwaitAuthorization”
![](https://spicatech.in/wp-content/uploads/2023/12/3.jpg)
Charge Transaction Table :
After creating the order the Authorization record is in “open” status and Create_Order record is in “closed” Status entry is there in the YFS_Charge_Transaction table.
![](https://spicatech.in/wp-content/uploads/2023/12/4.jpg)
RequestCollection :
<Order DocumentType=”0001″ EnterpriseCode=”Matrix” OrderHeaderKey=”20230825130846254017″ OrderNo=”526″/> |
Console :
After the requestCollection Api call the payment status is moved to “Authorized”.
![](https://spicatech.in/wp-content/uploads/2023/12/5.jpg)
Table :
Both Authorization and Create_Order status are changed to “Checked”.
![](https://spicatech.in/wp-content/uploads/2023/12/6.jpg)
Upto confirm shipment, there is no changes in the table and payment status. It remains the same.
CreateShipmentInvoice:
<Shipment SellerOrganizationCode=”Matrix” ShipmentKey=”20230825132238254348″ TaskQKey=”” ShipNode=”Matrix_WH01″ TransactionId=”CREATE_SHMNT_INVOICE.0001″/> |
Creating the Shipment invoice for the order.
Console :
The invoice is created.
![](https://spicatech.in/wp-content/uploads/2023/12/7.jpg)
Table :
- After creating the Shipment invoice, the SHIPMENT record will be opened in the
table.
![](https://spicatech.in/wp-content/uploads/2023/12/8.jpg)
Invoice Details :
- Line Total = ExtendedPrice + Charges + Tax – Discount
As per this Order, GrandTotal = 190
![](https://spicatech.in/wp-content/uploads/2023/12/9.jpg)
RequestCollection :
<Order DocumentType=”0001″ EnterpriseCode=”Matrix” OrderHeaderKey=”20230825130846254017″ OrderNo=”526″/> |
Console :
The PaymentStatus is changed to “Invoiced”.
![](https://spicatech.in/wp-content/uploads/2023/12/10.jpg)
Table :
The CHARGE record will be opened in the table to process the payment.
![](https://spicatech.in/wp-content/uploads/2023/12/11.jpg)
ExecuteCollection :
<Order DocumentType=”0001″ EnterpriseCode=”Matrix” OrderHeaderKey=”20230825130846254017″ OrderNo=”526″/> |
Console :
In Console the Collected amount is updated to 190.
![](https://spicatech.in/wp-content/uploads/2023/12/12.jpg)
Table :
- The CHARGE record will be changed to “CLOSED”
- The amount 190 is credited.
![](https://spicatech.in/wp-content/uploads/2023/12/13.jpg)
RequestCollection :
<Order DocumentType=”0001″ EnterpriseCode=”Matrix” OrderHeaderKey=”20230825130846254017″ OrderNo=”526″/> |
Console :
After requestCollection Api call the PaymentStatus is moved to “Paid”.
![](https://spicatech.in/wp-content/uploads/2023/12/14-1.jpg)
Table :
In table the CHARGE record status is moved to “Checked”.
![](https://spicatech.in/wp-content/uploads/2023/12/15.jpg)
Settlement is completed for this order.
#LetsTalkRetail #SpicaTech
This is really a good explanation.
Can we have similiar explanation w.r.t Wallets.
Thanks for your comments. We noted this topic. We will keep posting about this topic as well.