Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Unable to test Live i.e Unable to generate access_token to test live #1355

Open
@vijaykumarcme

Description

Hello!
I'am new to paypal REST api.

Recently i have created paypal business account.

I have tested in sandbox it worked.

I followed this

https://developer.paypal.com/docs/api/get-an-access-token-curl/

I generated access_token using sandbox

curl -v https://api.sandbox.paypal.com/v1/oauth2/token \ -H "Accept: application/json" \ -H "Accept-Language: en_US" \ -u "client_id:secret" \ -d "grant_type=client_credentials"

After generating access_token

I have accessed my sandbox invoices using this method.

curl -v -X GET https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-FKAK-R6BD-YR3X-CE3R \ -H "Content-Type: application/json" \ -H "Authorization: Bearer A21AAEK9ed_tfoxktk-NqiTEBf7BxmFR-E2_87uyhBl13JwX3YCSvEqfi1AAL0WplTue74uZmCM-VosvwdQ"

It worked successfully.

But when i tried to test live it is not working i have used the below method.

``curl -v https://api.paypal.com/v1/oauth2/token
-H "Accept: application/json"
-H "Accept-Language: en_US"
-u "client_id:secret"
-d "grant_type=client_credentials"`

But i got the error

{"error":"invalid_client","error_description":"Client Authentication failed"}

My question is we need to verify the business account in order to test live curl command.....?

I mean i just want to test invoices from my paypal account using curl account i.e live business account in linux terminal.

I have viewed this docs.

https://developer.paypal.com/docs/api/goingLive/

for going live we need to verify our business account.......?

Another thing is i just want to get the invoices to view by generated access_token like sandbox in the terminal itself.

For this should i deploy the created app some where like website to get access to invoices using curl command......?

Some people told that you won't need to deploy any app to test the live commands. but account verification is only.

Please answer my doubts.

Thanks!

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions