Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Contributor
Posts: 12
Registered: ‎12-20-2012
Accepted Solution

CIM createCustomerPaymentProfileResponse, need clarification on customerPaymentProfileId format

Using CIM, PHP SDK, MySQL

 

Documentation states:

 

customerPaymentProfileId

Format: Numeric

 

Numeric can mean many different things. How should this value be stored? Unless we have more details on what exactly this value can contain, it seems the only safe way to store it is as a string.


Accepted Solutions
Solution
Accepted by topic author codasaurus
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: CIM createCustomerPaymentProfileResponse, need clarification on customerPaymentProfileId format

it a whole number, it 8 digit for now, but could grow to 9 digit then 10, etc

View solution in original post


All Replies
Solution
Accepted by topic author codasaurus
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: CIM createCustomerPaymentProfileResponse, need clarification on customerPaymentProfileId format

it a whole number, it 8 digit for now, but could grow to 9 digit then 10, etc

Contributor
Posts: 12
Registered: ‎12-20-2012

Re: CIM createCustomerPaymentProfileResponse, need clarification on customerPaymentProfileId format

Thank you for the clarification. Our original developer set the mysql data type as decimal(10,1), and I was trying to figure out if he knew something I didn't know. As long as the value will always be a whole, positive number, it seems the best approach would be int(11) unsigned