cancel
Showing results for 
Search instead for 
Did you mean: 

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?

 

 

pravin15
Member
1 ACCEPTED SOLUTION

Accepted Solutions

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

brianmc
Administrator Administrator
Administrator
1 REPLY 1

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"
    }
}

brianmc
Administrator Administrator
Administrator