![](https://spicatech.in/wp-content/uploads/2024/01/WalletPR.jpg)
Introduction
Payment processing has three main steps. Authorization, Invoicing and Settlement.
- Authorization is the process of authenticating the amount that a particular order has. This process will connect with the payment system, and it will get a response. Based on the response, the payment status of the order will be moved to AUTHORIZED.
- Invoicing is the process of initiating the settlement for the order, and it can be done in two stages, that is Order level Invoicing and Shipment level Invoicing.
- In the settlement process, based on the payment method of the order, it will connect to the payment system and collect the total amount of the order from the customer.
Payment Rule Configuration
Step 1: Go to SBC – Move to your organization – System Setup – Payment – Payment Rule – Search
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture1-1-1024x465.png)
Step 2 : Configuring the created payment rule at Enterprise Level
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture2-1-1024x251.png)
Payment Type Configuration
Step 1: Go to SBC – Move to your organization – System Setup – Payment – Payment Type – Search
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture3-1-1024x396.png)
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture4-1-1024x475.png)
User Exit Implementation
YFSCollectionOthersUE is implemented to perform the authorization, re-authorization, and charge activities of the other payment types. This user exit will be invoked in the Execute Collection API call.
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture5-1-1024x162.png)
Wallet – Payment Flow
- Sales Order Flow – Wallet
- Extra Quantity Added
Case 1: Sales Order Flow – Wallet
Create Order
Created Order with Wallet as Payment Type
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture6-1-1024x460.png)
Console
- Order Status is ‘Created’ and Payment Status – ‘Authorized‘
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture7-1-1024x395.png)
Charge Transaction Table
After creating the order, create order record is in ‘Checked’ Status and Authorization is in ‘Checked’ Status.
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture8-1-1024x119.png)
Create Shipment Invoice
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture9-1-1024x90.png)
Console
- Invoice is created for shipment of the order.
- Payment Status is still in ‘Authorized’ Status
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture10-1-1024x380.png)
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture11-2-1024x250.png)
Charge Transaction Table
After Invoicing, Shipment entry is created with ‘Open’ Status.
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture12-2-1024x141.png)
Request Collection
Payment status is moved to ‘Invoiced’ Status after called the Request Collection
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture13-2-1024x388.png)
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture14-2-1024x250.png)
Charge Transaction Table
Shipment record is moved to ‘Checked’ status and Charge record is created with ‘Open’ Status
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture15-1-1024x151.png)
Execute Collection
- Invoiced amount has been collected and Collected Amount is updated in the Console.
- Payment status is in ‘Invoiced‘.
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture16-2-1024x381.png)
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture17-1024x251.png)
Charge Transaction Table
- Total Amount has been Collected after called the execute collection API.
- Charge record is moved to ‘Closed’ status.
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture18-1024x149.png)
Request Collection
Payment Status is moved ‘Paid’ after called the request collection.
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture19-1-1024x385.png)
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture20-1024x251.png)
Charge Transaction Table
Charge record is moved to ‘Checked’ Status.
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture21-1024x149.png)
Case 2: Extra Quantity added
Some of the additional quantity is added to the existing line of the sales orders.
Created
Created with Wallet Payment and Payment Status is in ‘Authorized’ status.
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture22-1024x391.png)
Charge Transaction Table
After creating the order, create order record is in ‘Checked’ Status and Authorization is in ‘Checked’ Status.
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture23-1024x127.png)
Add Additional Quantity
- By using Change Order API, Additionally two quantity is added after creating the order.
- Payment Status is moved to ‘Await Authorization‘.
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture24-1024x399.png)
Charge Transaction Table
New Authorization record will be ‘Closed’ status and Addition record is in ‘Open’ status after added the extra quantity.
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture25-1024x147.png)
Request Collection
Payment Status is moved to ‘Authorized’ status after called the request collection.
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture26-1024x395.png)
Charge Transaction Table
- Authorization record will be ‘Checked‘ status
- Addition record is in ‘Checked’ status after added the extra quantity.
![](https://spicaoms.com/wp-content/uploads/2024/01/Picture27-1024x153.png)
Thank you for taking time to go through this one !
#LetsTalkRetail #SpicaTech
Thanks for sharing this on request. Rally Helpful and learnt a lot.