I need to create billing agreement using Credit Card to for plan subscription.
billing_agreement = BillingAgreement({ "name": plan.subscription_name, "description": "Agreement for the recurring payment for the plan " + plan.subscription_name + ". The cost of this plan is $" + str('%.2f' % plan.subscription_price), "start_date": (datetime.now() + timedelta(hours=1)).strftime('%Y-%m-%dT%H:%M:%SZ'), "plan": { "id": str(payment_id) }, "payer": payer_info['payer'], "shipping_address": { "line1": str(current_user.address1), "line2": str(current_user.address2), "city": str(current_user.city), "state": str(current_user.state), "postal_code": str(current_user.zipcode), "country_code": "US" } }) if billing_agreement.create():
print billing_agreement.id
I am able to generate the billing_agreeement.id. But When I am looking the payment history for this ID, it says account suspended. While it is working for payment method "Paypal". But for payment method "credit_card", it is not working.
Can you please confirm....
... View more