Giter Site home page Giter Site logo

Comments (8)

prakash-gangadharan avatar prakash-gangadharan commented on July 28, 2024 1

Hi @PulseBeat02, It looks like you are getting the above error since you passing the special character $ along with the amount.
Screenshot:
image
Can you try create the payment by removing the same?
You can find the sample request here :
https://developer.paypal.com/docs/api/payments/v1/#payment_create

from paypal-java-sdk.

PulseBeat02 avatar PulseBeat02 commented on July 28, 2024 1

Hi, @prakash-gangadharan Thank you for telling me. I will take a look at my code and fix this issue as quickly as possible. Then, I will report back to you if the original issue still persists.

from paypal-java-sdk.

prakash-gangadharan avatar prakash-gangadharan commented on July 28, 2024

Hi @PulseBeat02 , is this still an issue, if yes can you help us with the recent ayPal-Debug-ID to check this further.

Thanks!

from paypal-java-sdk.

PulseBeat02 avatar PulseBeat02 commented on July 28, 2024

@prakash-gangadharan I'm here to help. I believe the issue still exists. And also, what is the ayPal-Debug-ID?

from paypal-java-sdk.

prakash-gangadharan avatar prakash-gangadharan commented on July 28, 2024

Hi @PulseBeat02, PayPal-Debug-ID is nothing but the debug_id which is sent along with the error message
For example:
{"name":"INTERNAL_SERVICE_ERROR","message":"An internal service error occurred.","information_link":"https://developer.paypal.com/docs/api/payments/#errors","debug_id":"############"}"
It would be helpful for us to debug the issue using paypal logs.

from paypal-java-sdk.

PulseBeat02 avatar PulseBeat02 commented on July 28, 2024

There is no debug id.

{"name":"AUTHENTICATION_FAILURE","message":"Authentication failed due to invalid authentication credentials or a missing Authorization header.","links":[{"href":"https://developer.paypal.com/docs/api/overview/#error","rel":"information_link"}]}

from paypal-java-sdk.

prakash-gangadharan avatar prakash-gangadharan commented on July 28, 2024

Hi @PulseBeat02, can you try the same request using the CURL command to check whether are you receiving any PayPal-Debug-ID for the reported error. Is the issue occurs while creating the payment or while executing it?

from paypal-java-sdk.

PulseBeat02 avatar PulseBeat02 commented on July 28, 2024

Now I am getting a different issue. It said that the currency format is incorrect:

response-code: 400 details: name: VALIDATION_ERROR message: Invalid request - see details details: [{ "field": "transactions.amount.details", "issue": "Currency amount must be non-negative number, may optionally contain exactly 2 decimal places separated by \u0027.\u0027, optional thousands separator \u0027,\u0027, limited to 7 digits before the decimal point and currency which is a valid ISO Currency Code" }]

It seems that the currency amount is incorrect, but I set the price to be "1.20". Here is the debug id: 17113fb87cc5c

from paypal-java-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.