- 🇵🇪Peru krystalcode
Just adding some more information here. From the BlueSnap documentation.
Keep in mind, the Hosted Payment Fields Token can only be used once- either to process a transaction or to save shopper payment info. If you want to use Hosted Payment Fields to vault a shopper and then process a charge, please contact BlueSnap implementation to enable a multi-use token for improved conversions.
We use the token that is created when collecting the payment details only for saving the credit card in the vaulted shopper. And that happens pretty much immediately as soon as the token is created i.e. it should never expire. We do not use the token to capture the payment; at the end of checkout, we send the last 4 digits and the card type to identify the card that should be charged.
So, if you have customizations and you want to reuse the token for creating the transaction, you need to renew the token - or to submit the last 4 digits and card type instead like the module does.