Reply
Member
Posts: 4
Registered: ‎11-27-2017
Accepted Solution

CIM integration in iOS with accept sdk

Hello all,

 

I want to integrate CIM(Customer Information Management) with authorize.net accept sdk in iOS to store customer credit card details for future use.

 

Is there any solution to integrate CIM in ios?

 

 


Accepted Solutions
Solution
Accepted by topic author pravin15
‎12-08-2017 09:12 PM
Administrator
Posts: 149
Registered: ‎03-28-2014

Re: CIM integration in iOS with accept sdk

Absolutely.  Use the Accept iOS SDK (https://github.com/AuthorizeNet/accept-sdk-ios ) to send the card details directly to us (no card details on your server) and get an accept token back.  Once you have that post it up to your server with the rest of the customer data and then use our API to create a customer payment profile (https://developer.authorize.net/api/reference/#customer-profiles-create-customer-profile ) with your accept token:

 

{
    "createCustomerProfileRequest": {
        "merchantAuthentication": {
            "name": "",
            "transactionKey": ""
        },
        "profile": {
            "merchantCustomerId": "Merchant_Customer_ID",
            "description": "Profile description here",
            "email": "customer-profile-email@here.com",
            "paymentProfiles": {
                "customerType": "individual",
                "payment": {
                    "opaqueData": {
                    "dataDescriptor": "COMMON.ACCEPT.INAPP.PAYMENT",
                    "dataValue": "1234567890ABCDEF1111AAAA2222BBBB3333CCCC4444DDDD5555EEEE6666FFFF7777888899990000"
                }
                }
            }
        },
        "validationMode": "testMode"
    }
}

View solution in original post


All Replies
Solution
Accepted by topic author pravin15
‎12-08-2017 09:12 PM
Administrator
Posts: 149
Registered: ‎03-28-2014

Re: CIM integration in iOS with accept sdk

Absolutely.  Use the Accept iOS SDK (https://github.com/AuthorizeNet/accept-sdk-ios ) to send the card details directly to us (no card details on your server) and get an accept token back.  Once you have that post it up to your server with the rest of the customer data and then use our API to create a customer payment profile (https://developer.authorize.net/api/reference/#customer-profiles-create-customer-profile ) with your accept token:

 

{
    "createCustomerProfileRequest": {
        "merchantAuthentication": {
            "name": "",
            "transactionKey": ""
        },
        "profile": {
            "merchantCustomerId": "Merchant_Customer_ID",
            "description": "Profile description here",
            "email": "customer-profile-email@here.com",
            "paymentProfiles": {
                "customerType": "individual",
                "payment": {
                    "opaqueData": {
                    "dataDescriptor": "COMMON.ACCEPT.INAPP.PAYMENT",
                    "dataValue": "1234567890ABCDEF1111AAAA2222BBBB3333CCCC4444DDDD5555EEEE6666FFFF7777888899990000"
                }
                }
            }
        },
        "validationMode": "testMode"
    }
}