Managing Vault Entries
Update a Vault Record
// Update billing address
$post = array('security_key' => YOUR_PRIVATE_KEY, 'customer_vault' => 'update_customer',
'customer_vault_id' => 'CUST-123', 'address1' => '789 New St', 'zip' => '33801');
// Update payment method (new card)
$post = array('security_key' => YOUR_PRIVATE_KEY, 'customer_vault' => 'update_customer',
'customer_vault_id' => 'CUST-123', 'payment_token' => $new_token);
Delete a Vault Record
$post = array('security_key' => YOUR_PRIVATE_KEY, 'customer_vault' => 'delete_customer',
'customer_vault_id' => 'CUST-123');
Best Practices
- Always get explicit consent before storing payment information
- Provide customers a way to view and delete their stored methods
- Delete vault records when accounts are closed
- Use descriptive custom vault IDs mapped to your user database