The collectPAN() method securely collects credit card details from users through an isolated iframe. The card data is tokenized via PCI Data Vault and provisioned with card network, ensuring PCI compliance without card data ever touching your servers.
The SDK injects a secure, isolated iframe into your specified container. The iframe is served from Prava’s domain to ensure zero PCI scope.
2
Session Validation
The iframe validates the session token with Prava’s backend to ensure the request is legitimate and not expired.
3
User Input
The user enters their card details (number, expiry, CVV, name) in the iframe form with real-time validation.
4
PCI Data Vault Vaulting
When the user submits, the iframe sends the card data directly to PCI Data Vault for tokenization. Your servers never see the raw PAN.
5
Card Network Provisioning
Prava’s backend retrieves the encrypted payment instrument from PCI Data Vault and provisions a token with card network, binding it to the user’s device via FIDO.
6
Result
The enrollment result (with last4, brand, vProvisionedTokenID) is returned to your app.