Using the api to make payments works in Sandbox but not in Live

rschlack2
Contributor
Contributor

I wrote an application to make a payment to an email and I have it working for my sandbox account but I can't get it to work in live.  When I make the request and log in to approve the payment it redirects quickly and displays this message in the browser.

 

"You are logging into the account of the seller for this purchase. Please change your login information and try again."

 

But that is what I'm trying to do, log in as the seller to authorize the payment.  The JSON I'm sending to Paypal is below.   I've confirmed that the email is the person's email that I'm trying to pay.  Double checked that all my credentials are correct.  I'm using the live creds and I'm using

https://api.paypal.com not the sandbox api url.

 

 

 

{
  "intent": "sale",
  "payer": {
    "payment_method": "paypal"
  },
  "transactions": [
    {
      "amount": {
        "total": "65.90",
        "currency": "USD"
      },
      "payee": {
        "email": "*****"
      },
      "description": "ReadyMade.atp.art Payout for Helicopter Over Biscane Bay 4 - 1/4 inch / 24x36 inch (Qty: 1)"
    }
  ],
  "redirect_urls": {
    "return_url": "https://xxx.xxx.com/paypal-success?orderId=xxxx&lineItemId=xxx",
    "cancel_url": "https://xxx.xxx.com/RmOrders"
  }
}

 

 

 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

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