locked
setExpressCheckout NVP RRS feed

  • Question

  • User578059180 posted

    Hi,

    I am very new to the Paypal payments.I tried to do the recurring payment using Express check out. and following are the code I tried to do the same.

    Public Sub ExpressCheckOUt()
            Dim redirecturl As String = ""
    
            'Mention URL to redirect content to paypal site
            redirecturl += "https://api-3t.sandbox.paypal.com/nvp"
            redirecturl += "&METHOD=setExpressCheckout"
            redirecturl += "&RETURNURL=" + ConfigurationManager.AppSettings("SuccessURL").ToString()
            redirecturl += "&CANCELURL=" + ConfigurationManager.AppSettings("FailedURL").ToString()
            redirecturl += "&PAYMENTACTION=Sale"
            redirecturl += "&CURRENCYCODE=USD"
            redirecturl += "&BUTTONSOURCE=ECWizard"
            redirecturl += "&USER=" + ConfigurationManager.AppSettings("paypalemail").ToString()
            redirecturl += "&SUBJECT=te"
            redirecturl += "&L_NAME0=MyName"
            redirecturl += "&L_AMT0=20.00"
            redirecturl += "&VERSION=2.3"
            redirecturl += "&AMT=150"
            redirecturl += "&L_BILLINGTYPE0=RecurringPayments"
            redirecturl += "&L_BILLINGAGREEMENTDESCRIPTION0=Test subscription"
    
            Response.Redirect(redirecturl)
    End Sub

    And I am getting error, its not redirecting to the sandbox at all. Can anyone please help me .. How can I call SetExpressCheckout in the payment page?? please..

    Tuesday, April 8, 2014 3:10 AM

Answers