- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've read this blog post (CIM Profile Creation Enhancements) and this one (New ARBGetSubscriptionList Call)
The first tells me this "if you pass the createProfile flag in the createTransactionRequest for AIM, you can both process a payment and create a payment and shipping profile in a single API call".
When I search the API docs for the createProfile flag it shows up in authorize a credit card or
Debit a Bank Account.
So my question is, as of the current API, can I charge a card and create a paymennt profile at one time, in one call to Authorize.net?
If so, could you please point me to docs that say how to do it?
Thanks,
- D
Solved! Go to Solution.
โ06-14-2016 11:20 AM - edited โ06-14-2016 11:22 AM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If anyone is looking for a complete example of "Charge a Credit Card" you can find it here:
- D
โ06-15-2016 09:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @fifty-git
It's available in the API Reference at http://developer.authorize.net/api/reference/index.html#payment-transactions-charge-a-credit-card
If you set createProfile as true, it will run the transaction and create a profile if successful.
Richard
โ06-14-2016 12:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your reply.
If I'm reading this correctly, I will have to create a customer profile as well as a payment profile, yes?
No way to just create the payment profile?
Thanks,
- D
โ06-14-2016 12:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you use createTransaction and createProfile=true, it will create a customer and payment profile for you or it will return duplicate customer profile id in the error message.
You can experiment with this in the sandbox to ensure you've got your most common uses cases covered.
Richard
โ06-14-2016 01:06 PM - edited โ06-14-2016 01:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks again for your answer.
The PHP sample code is pretty sparse for this, any better examples to show what I'm trying to do?
Perhaps I should be looking at the sample code for creating a customer profile to add to the charge a credit card sample?
Thanks,
- D
โ06-14-2016 01:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If anyone is looking for a complete example of "Charge a Credit Card" you can find it here:
- D
โ06-15-2016 09:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Since the above solution will indeed throw an error, it will charge the card, but it will not create a second payment profile.
So I put together a class to create only a payment profile and then charge to it.
Works great, except that it runs two transactions (somewhat expected) one to authorize the profile and one to charge to it.
So back to my original question... (I'm thinking the above is all I can do, but...)
My intention is to create only a new payment profile, without trying to create a customer profile, and then charge to. Doing this in one transaction.
Is there a way to do this?
I need to confirm my options.
Thank you!
- D
โ06-24-2016 08:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ06-24-2016 01:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, my intention is to create a payment profile for an exsiting customer profile and charge it all in the same transaction.
Thanks,
-D
โ06-24-2016 02:42 PM

