Housing Issues PayPal REST

I am using PayPal REST api using Python paypalrestsdk

. I have 3 problems with my PayPal sales page:

  • product price is not displayed next to the basket icon. I only have an icon with no text next to it.
  • The url is https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=XXXXXXXXX

    NOT like what i have seen in many modern webapps https://www.paypal.com/webapps/hermes?token=XXXXXXX

    , what is the difference between the two urls?
  • I have no button Pay with Debit or Credit Card

    . This only works in sandbox

    not inlive

My payment object looks like this:

payment = Payment({
            "intent": "sale",
            "payer": {
                "payment_method": "paypal"
            },
            "redirect_urls": {
                "return_url": settings.HOME_URL + reverse('usr-pay-process'),
                "cancel_url": settings.HOME_URL + reverse('usr-pay-cancel')
            },
            "transactions": [{
                "amount": {
                "total": "1.00",
                "currency": "USD"
            },
            "description": "My Item"
            }]
    })

      

+3


source to share


1 answer


Check out the answers below to your questions.

Q1. I see that item details are not being passed in your CreatePayment API request, pass item details to transaction object. For more information on the Payments API see the following link: https://developer.paypal.com/docs/api/payments/



Q2. No answer. Please consult PayPal support.

Q3. Check that your PayPal email address is verified, you are using a personal or business account. Also check if the advanced customer / account verification options are enabled on your PayPal website. otherwise, contact PayPal support at the following URL: https://www.paypal-techsupport.com/app/ask

+2


source







All Articles