I am tring to create ARB subscription
First i was create Customer Profile then craete multiple Customer Payment Profile for this Customer Profile .
but a want to Create a Subscription (ARB) for particular Payment Profile of Customer Profile.
how can i create ARB Subscription for customerPaymentProfileId and customerProfileId.
please help........
Below my code is like that:
request = ARBCreateSubscriptionRequest.new
request.subscription = ARBSubscriptionType.new
request.subscription.name = "Gold"
request.subscription.paymentSchedule = PaymentScheduleType.new
request.subscription.paymentSchedule.interval = PaymentScheduleType::Interval.new("1","months")
request.subscription.paymentSchedule.startDate = "2016-03-01"
request.subscription.paymentSchedule.totalOccurrences ='9999'
request.subscription.amount = "123"
request2 = GetCustomerProfileRequest.new
request2.customerProfileId = "39546355"
response2 = transaction.get_customer_profile(request2)
request.subscription.customer = CustomerDataType.new(CustomerTypeEnum::Individual,response2.profile.merchantCustomerId,email)
request.subscription.billTo = NameAndAddressType.new("first_name","last_name"])
request1 = GetCustomerPaymentProfileRequest.new
request1.customerProfileId = "39546355"
request1.customerPaymentProfileId = "35896003"
request1.unmaskExpirationDate = true
response1 = transaction.get_customer_payment_profile(request1)
request.subscription.payment = response1.paymentProfile.payment
I am getting error in above red line "E00013 Credit Card Number is invalid."
Solved! Go to Solution.
02-23-2016 04:49 AM - edited 02-23-2016 04:51 AM
Hello @ppatidar
As @RaynorC1emen7 mentioned, it is currently not possible to create a new recurring billing subscription using a payment profile. However, an enhancement to support this capability is already in development that will be available in a future release. I don't have a time line for completion but we'll do a blog post when completed.
Richard
02-23-2016 09:00 PM
02-23-2016 05:21 AM - edited 02-23-2016 05:23 AM
but i want to create ARB subscription by using customerProfileId with customerPaymentProfileId....
not only for customerProfileId.....
please see my code above and understand what is my requirement
02-23-2016 05:40 AM - edited 02-23-2016 05:42 AM
What you want is not supported, that why you are getting the error.
02-23-2016 05:56 AM
Hey,
I am not storing credit card number in DB. And to create subscription, i am fetching customerPaymentProfile which gives me only last 4 digits of credit card number.
So I am having only 4-digit of Credit card number and I am unable to create susbcription with only 4-digits.
Is there any way which would help me?
02-23-2016 06:12 AM
Nope. not until they have this
finish.
or write your own scheduler to create transactions.
02-23-2016 06:29 AM - edited 02-23-2016 06:30 AM
I want to create ARB subscription for existing credit card payment info. it is possible?
payment info require at time of ARB create.
when i give card info like CreditCardType.new('4111111111111111','0120','123') then no problem with ARB subscription but i don't want to give new card info at the time of creation.i want to use pre-existing credit card info in ARB subscription.
how can give existing credit card info to ARB subscription.
02-23-2016 08:47 PM
Hello @ppatidar
As @RaynorC1emen7 mentioned, it is currently not possible to create a new recurring billing subscription using a payment profile. However, an enhancement to support this capability is already in development that will be available in a future release. I don't have a time line for completion but we'll do a blog post when completed.
Richard
02-23-2016 09:00 PM
Thank you.
Could you please tell me the rough tentative time of this future realease?
02-23-2016 09:42 PM - edited 02-23-2016 09:43 PM