Paytia API - Braintree payment gateway - using the gateway_customer_control field to control the passed value in the gateway_customer_id field

Paytia API - Braintree payment gateway - using the gateway_customer_control field to control the passed value in the gateway_customer_id field

Error conditions

When using the Paytia API and connecting to the Braintree payment gateway, Paytia has added the ability for a developer to set their own Customer ID values as the Braintree Customer ID. 

API error message for control use cases:

Case 1: Gateway = Braintree, and gateway_customer_control is not within the valid values of '0' or '1'.

Error message returend: The value sent in the gateway_customer_control field is not supported. Please use a supported value {0,1}

Case 2: Gateway = Braintree, and gateway_customer_id is not provided, but a value of 1 is passed in gateway_customer_control.

Error message returned: A valid payment gateway customer ID value is required in the gateway_customer_id field when you are passing a '1' value in the gateway_customer_control field.

Case 3: Gateway = Braintree, and the value passed in the gateway_customer_id field already exists on the payment gateway.

Error message returned: The value you have passed in the gateway_customer_id field already exists on the payment gateway. If you want to create a new customer ID on the payment gateway with your own gateway customer ID value, please provide a different value in the gateway_customer_id field.

If you have any questions, please reach out to techsupport@paytia.com