Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7092853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:21:58+00:00 2026-05-28T08:21:58+00:00

I’m trying to implement a payment system using the new PayPal API (Adaptive Payment).

  • 0

I’m trying to implement a payment system using the new PayPal API (Adaptive Payment).

So far, I have this workflow :

  • Send a request to PayPal for : AdaptivePayments/Pay
  • This create a Pay request, and return a payKey that is valid 3 hours (source)
  • Now, I wait that paypal sends me request through the IPN. When it will, I will get the pay_key with it
  • Using this pay_key, I will call the AdaptivePayments/PaymentDetails to know the state of the payment.

But I was wondering, how can I do if it’s been more than 3 hours? (like in a refund?)

What is the sure way to do then?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T08:21:59+00:00Added an answer on May 28, 2026 at 8:21 am

    Well I’ll answer myself on that one and after a bit of reading.

    Instead of using the payKey given when calling AdaptivePayments/Pay, and other solution is to use the trackingId.

    Here’s how :

    First step, you create an AdaptivePayments/Pay and you specify a trackingId (must be unique) :

    {
      "actionType":"PAY",
      "currencyCode":"USD",
      "receiverList":{"receiver":[{"amount":"1.00","email":"seller_1288085303_biz@gmail.com"}]},
      "returnUrl":"http://apigee.com/console/-1/handlePaypalReturn",
      "cancelUrl":"http://apigee.com/console/-1/handlePaypalCancel?",
      "trackingId":"abcde-12345-unique-of-course",
      "ipnNotificationUrl":"http://apigee.com/console/-1/ipn",
      "requestEnvelope":{"errorLanguage":"en_US", "detailLevel":"ReturnAll"}
    }
    

    In response, you will have the payKey that you’ll redirect your buyer to, in order to do the payment.

    Then, for the whole evolution of this payment, you will be notified to your IPN url (here, “http://apigee.com/console/-1/ipn“).

    When you’ll receive a (POST) request at this adress, check the validity to paypal and you’ll get a trackingId in the parameter. Check that this trackingId exists and then ask AdaptivePayments/PaymentDetails with that trackingId like this :

    {
     "trackingId":"{put here}",
     "requestEnvelope":{"errorLanguage":"en_US", "detailLevel":"ReturnAll"}
    }
    

    And you will have a complete detailled status of your payment in return.

    Now, you do the work to update your database, call your buyer, etc etc 🙂

    What was helpful for me :

    • Pay API Operation
    • PaymentDetails API Operation
    • IPN Variable Reference
    • Apigee Paypal console
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
this is what i have right now Drawing an RSS feed into the php,
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have thousands of HTML files to process using Groovy/Java and I need to
I am trying to loop through a bunch of documents I have to put
I'm making a simple page using Google Maps API 3. My first. One marker
I have some data like this: 1 2 3 4 5 9 2 6
I am trying to understand how to use SyndicationItem to display feed which is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.