Once you have a valid payment token from createToken, redirect your customer to the DPO Hosted Checkout page to complete payment securely.
DPO Pay handles card entry, security checks, 3-D Secure, fraud logic, and transaction authorization.
Redirect URL Format
https://secure.3gdirectpay.com/pay.asp?ID={TransToken}
Example Redirect (HTML Button)
<a href="https://secure.3gdirectpay.com/pay.asp?ID=1B454D71-23EB-42E9-8FE8-FDDC167B5BCD"
class="btn btn-primary">
Proceed to Payment
</a>Example button:
PHP Redirect
header("Location: https://secure.3gdirectpay.com/pay.asp?ID=" . $transToken);
exit;Node.js / Express Redirect
res.redirect("https://secure.3gdirectpay.com/pay.asp?ID=" + transToken);Optional: Embedded Checkout (iframe)
Use only if your UX requires inline checkout
(DPO still hosts card entry — PCI safe)
<iframe
src="https://secure.3gdirectpay.com/pay.asp?ID=1B454D71-23EB-42E9-8FE8-FDDC167B5BCD"
width="100%"
height="650"
frameborder="0"
scrolling="yes">
</iframe>Payment Flow
sequenceDiagram participant M as Merchant Site participant U as Customer participant D as DPO Checkout M->>U: Display checkout button U->>D: Redirect via payment URL D-->>U: Payment screen D-->>M: BackURL callback with result U-->>M: RedirectURL browser return
Best Practices
- Use a loading screen during redirect
- Store
TransToken+CompanyRef - Wait for BackURL webhook for final confirmation
(Redirect is cosmetic, webhook is final truth)
Next Steps
After redirect is complete:
| Need | Link |
|---|---|
| Receive payment result | ✅ Payment Callbacks |
| Display order summary | ✅ Merchant UX |
| Check final status | ✅ Status Lookup |
| Handle refunds/voids | ✅ Refund & Void |

