Locking Orders for Onramper in icRamp

The onramper in icRamp commits to an order by locking it, a process essential to secure the transaction and proceed with the payment. Here's how the flow works:

  1. Provider Compatibility: Before locking the order, the onramper must ensure that they have a common provider type with the offramper. For example, if the order accepts PayPal, the onramper must have PayPal as a payment provider. Currently, PayPal is the only production-ready provider, while Revolut is still in testing.

  2. Selecting the Payment Provider: The onramper selects their payment provider from the list shown in their profile. For example, if both the onramper and offramper support PayPal, the onramper selects their PayPal account to proceed with the payment.

  3. Locking the Order: Once the provider is selected, the onramper clicks the Lock Order button. This locks the order for 30 minutes, during which the onramper must complete the payment. The locked order prevents other users from interacting with the same order during this time.

    Note: If the onramper fails to pay within the 30 minutes, their score will decrease, discouraging malicious behavior. A reduced score limits future access, and a score below -1 results in being banned from the platform.

lock-order.png

Onramper Locking an order.

locked-order.png

Order is Locked for 30 min.

Paying the order

  1. Payment Processing: After locking the order, the onramper proceeds with the payment through the selected provider. The icRamp backend verifies the payment once it's completed. This verification usually takes only seconds for ICP orders, while EVM transactions might take a bit longer depending on the network's condition.
  2. Completion and Rewards: Upon successful payment verification, the funds are transferred to the offramper’s account, and the order is marked as completed. The onramper's score increases, reflecting successful transactions. The ramped amount for the onramper is also updated to reflect the total fiat they have spent, displayed in the profile section.
  3. Fund Release and Settlement: Once the backend verifies the payment, the funds are credited to the onramper’s address added in their profile, either an EVM wallet address or an Internet Identity principal.

paypal-checkout.png

Paypal Checkout

completed-order.png