---
title: Submit Payment
slug: user-documentation/submit-payment
docTags: 
createdAt: 2024-05-23T11:45:48.455Z
---

The set payment feature manages transactions efficiently, ensuring a smooth checkout experience for your customers and secure payment processing for your business.

**How it Works**

![](https://api.archbee.com/api/optimize/VFZRDOpw47BNw4RSOd4_v-SvrFKRaJT9Byz-c6tEmKD-20240830-073519.png)

1. **Retrieving Payment Information:&#x20;**&#x54;he process begins by accessing the relevant payment information based on specific identifiers:
   - **Cart ID**: Uniquely identifies the customer's shopping cart.
   - **Customer ID**: Links the payment to the respective customer's profile.
   - **Payment IDs**: Refer to specific payment methods or saved payment details.
2. **Secure Data Handling:&#x20;**&#x49;f payment data is encrypted for enhanced security, it undergoes a careful decryption process:
   - The encrypted information is securely decrypted using industry-standard protocols.
   - This step ensures that sensitive payment data remains protected throughout the process.
3. **Processing Payment Information:&#x20;**&#x54;he system then processes either the decrypted payment data or already tokenized data:
   - **Successful Processing**: If everything proceeds as expected, the payment details are securely stored in a database, indicating successful submission.
   - **Error Handling**: If any issues arise during processing, an error response is generated to inform you and initiate troubleshooting procedures.
4. **Confirmation of Success:&#x20;**&#x4F;nce payment details are successfully stored in the database, the process concludes, confirming a successful payment submission. This indicates that the transaction has been processed and recorded accurately.





<font color="#eb144c">**How it Works**</font>

- <font color="#eb144c">**Finding the Right Payment Data\:** The process begins by retrieving the relevant payment information based on specific identifiers, including\:</font>
  - <font color="#eb144c">**Cart ID\:** Uniquely identifies the customer's shopping cart.</font>
  - <font color="#eb144c">**Customer ID\:** Links the payment to the respective customer's profile.</font>
  - <font color="#eb144c">**Payment IDs\:** Refer to specific payment methods or saved payment details.</font>
- <font color="#eb144c">**Unveiling Encrypted Data (If Applicable)****\:** If payment data is encrypted for enhanced security, it undergoes a careful decryption process\:</font>
  - <font color="#eb144c">The encrypted information is securely sent to Google's Key Management Service (KMS).</font>
  - <font color="#eb144c">KMS acts as a trusted custodian, decrypting the data and returning it in a readable format for processing.</font>
- <font color="#eb144c">**Processing Payment Information\:** The system now handles either the decrypted payment data or already tokenized data (which doesn't require decryption)\:</font>
  - <font color="#eb144c">**Successful Processing\:** If everything proceeds smoothly, the payment details are securely stored in a database, indicating successful submission.</font>
  - <font color="#eb144c">**Error Handling\:** If any issues arise during processing, an error response is generated to inform you and initiate troubleshooting.</font>
- <font color="#eb144c">**Confirmation of Success\:** Once payment details are successfully stored in the database, the process concludes, confirming a successful payment submission. This means the transaction has been processed and recorded accurately.</font>

