Generate a unique token
To generate a DFP you first need to create a unique token within your web shop. Ratepay recommends using a UUID v4.
If not using a UUID, use these characters only: A-Z a-z 0-9 - _
Alternatively, use the Ratepay <transaction-id> defined in the PAYMENT_INIT response.

Example

1
$timestamp = microtime();
2
$customerId = $customerObject->getId();
3
$deviceIdentToken = md5($customerId . "_" . $timestamp);
Copied!
Copy link
Contents
Example