I have questions about cancel subscription and I need answers.

oukatou
Member
Member

I am trying to integrate the cancel subscription feature to our website, but when I use this API(https://api.sandbox.paypal.com/v1/billing/subscriptions/I-PVVXGCHVCL6V/cancel)  )  to cancel the subscription, Paypal response to me the 404 Not Found. I can ensure the subscription id( I-PVVXGCHVCL6V) is correct. 

 

{
    "name": "RESOURCE_NOT_FOUND",
    "message": "The specified resource does not exist.",
    "debug_id": "62a1a2f63d70",
    "details": [
        {
            "issue": "INVALID_RESOURCE_ID",
            "description": "Requested resource ID was not found."
        }
    ],
    "links": [
        {
            "href": "<a href="https://developer.paypal.com/docs/api/v1/billing/subscriptions#RESOURCE_NOT_FOUND" target="_blank">https://developer.paypal.com/docs/api/v1/billing/subscriptions#RESOURCE_NOT_FOUND</a>",
            "rel": "information_link",
            "method": "GET"
        }
    ]
}

 


Our website integrated the Paypal subscription by using the API https://www.paypal.com/cgi-bin/webscr like this  ( https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/html-example-su...
Q1: Is it possible that can not using the https://api.sandbox.paypal.com when using https://www.paypal.com/cgi-bin/webscr ?

 

I also trying to use this way (https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/html-example-su...)  to cancel, but the param alias confused me.

Q2: Our database didn't store the merchant account ID,how to set alias?

Q3: I visited the link https://www.paypal.com/cgi-bin/webscr?cmd=_subscr-find&alias=SGGGX43FAKKXN&switch_classic=true , 

it redirect to https://www.sandbox.paypal.com/myaccount/transactions/?free_text_search=&account_subscription_type=A... 

and I can not find out the Cancel button on this page,Is it normal?

Login to Me Too
1 REPLY 1

kartikdesai
Contributor
Contributor

Hello 

 

It may be possible that when you have created this subscription I-PVVXGCHVCL6V at that time clientID and ClientKEY is different now.

 

Thanks 

Login to Me Too

Haven't Found your Answer?

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