Git Product home page Git Product logo

pdt-code-samples's Introduction

PDT Overview :

  • Payment Data Transfer (PDT) is a secure method to retrieve the details about a PayPal transaction so that you can display them to your customer. It is used in combination with Website Payments Standard, so that after a customer returns to your website after paying on the PayPal site, they can instantly view a confirmation message with the details of the transaction.

PDT How to run?

  • Enable PDT for your PayPal account.
    • Log in to your PayPal account.
    • Click the Profile subtab.
    • Click the My Selling Tools button in the left column.
    • Find the Selling online section and click Update in the Website preferences row.
    • Under Auto Return for Website Payments, click the On radio button.
    • For the Return URL, enter the URL on your site that will receive the transaction ID posted by PayPal after a customer payment.
    • Under Payment Data Transfer, click the On radio button.
    • Click Save.
    • Find the Selling online section and click Update in the Website preferences row again.
    • Scroll down to the Payment Data Transfer section of the page and take note of your PDT identity token.
  • Create a button. The PayPal buttons consist of a form which has a number of hidden key/value pairs and a submit button. You can find info on how to make those in their Website Payments Standard Integration Guide.
  • A transactionId will be returned in the returnURL.
  • POST request back to PayPal with TransactionId and PDT identity token as specified in scripts above in different language.
  • Check the response. The first variable is 'SUCCESS' followed by PDT variables. if it is a failure, the first variable will be a 'FAIL'.

PDT Reference :

pdt-code-samples's People

Contributors

lvairamani avatar ppmtscory avatar tomwhipple avatar

Watchers

 avatar  avatar  avatar

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.