PayPal .net Sdk Billing agreement doesn't retruns Agrrement ID and State

Ampliz
Contributor
Contributor

When i try to create a Billing agreement ,i am not getting the Agreement_ID and State. it is always return null but it is not giving any exception and i am getting the aproval url and when i redirect the user for payment approval i am getting CustomerBillingAgreement StateFatalError&rapidsStateSignature=(null) this message in url and message read we are unable to process the request now try diffrent payment method

 


var apiContext = PayPalConfiguration.GetAPIContext();
var agreement = new Agreement() { name = "Override Agreement", description = "PayPal payment agreement that overrides merchant preferences and shipping fee and tax information.", start_date = startDate.ToString("yyyy-MM-ddTHH:mm:ss") + "Z", payer = new Payer() { payment_method = "paypal", payer_info = new PayerInfo() { email = "email" } }, plan = new Plan() { id = planId }, shipping_address = shippingAddress, override_merchant_preferences = new MerchantPreferences() { setup_fee = new Currency() { value = "3", currency = "USD" }, return_url = "http://localhost:64121/PayPal/SubscribeSuccess", cancel_url = "http://localhost:64121/PayPal/SubscribeCancel", auto_bill_amount = "YES", initial_fail_amount_action = "CONTINUE", max_fail_attempts = "11" } }; var createdAgreement = agreement.Create(apiContext);

Login to Me Too
1 REPLY 1

kernowlass
Esteemed Advisor
Esteemed Advisor

@Ampliz

Merchant Techie info ..............
twitter @PayPal_MTS or alternatively, you can contact them directly through the Technical Support website here https://www.paypal-techsupport.com/. On this website you can sign up to receive all updates or technical issues which may be relevant to you. We also have our developer website https://developer.paypal.com


Advice is voluntary.
Kudos / Solution appreciated.
Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.