Adaptive payments-talk

17
Presented by Dave Hawes @davehawes http://blog.davehawes.com Using PayPal Adaptive Payments

description

The slide deck that Dave Hawes used for his talk at DevEvening

Transcript of Adaptive payments-talk

Page 1: Adaptive payments-talk

Presented by Dave Hawes

@davehawes

http://blog.davehawes.com

Using PayPal Adaptive Payments

Page 2: Adaptive payments-talk

• What was the problems I had taking payment

• Why I chose PayPal’s ‘Chained Payment’ Adaptive Payment

• What other types of Adaptive Payments are available

• Why might they be useful

• What does the code look like

• The approval process

• Where to get some more information

What I’m going to tell you

Page 3: Adaptive payments-talk

My website is http://www.trainingcoursebooker.com

It allows training providers to advertise when they are running a course and sell places.

The website takes a commission for each place sold.

My Website

Page 4: Adaptive payments-talk
Page 5: Adaptive payments-talk

• Customers trusting I would give them their money

• Legal responsibility if I took the money

• Double fees when I transferred the money to my customer

• Administrative time to transfer the money

The problems I had taking payment

Page 6: Adaptive payments-talk

The best fit solution that the PayPal adaptive payment API offered was a chained payment:

Using a ‘Chained Payment’

Page 7: Adaptive payments-talk

• Consumer pays the Training Provider and the Training Provider pays the website commission.

• The Training Provider gets their money immediately

• It is the Training Providers name on the customers credit card bill. Leaving the website free of any legal obligations of the quality of the product sold.

• Only one set of fees are levied

• It is automatic, zero admin time

Why is this useful

Page 8: Adaptive payments-talk

Before redirecting the user to PayPal to take payment, your app tells PayPal about the payment and how it should be divided up:

&actionType=PAY

&cancelUrl=http:\\example.com\cancel.htm

&currencyCode=USD

&receiverList.receiver(0).amount=9.00

&receiverList.receiver(0)[email protected]

&receiverList.receiver(1).amount=5.00

&receiverList.receiver(1)[email protected]

&requestEnvelope.errorLanguage=en_US

&returnUrl=http:\\example.com\return.htm

PayPal logs this and returns you a token. Redirect the user to PayPal with the token. When payment is taken the money is divided out as per the options linked with the token you were given.

What does it look like?

Page 9: Adaptive payments-talk
Page 10: Adaptive payments-talk

www.trainingcoursebooker.com was one of the first websites in Europe to implement an Adaptive API and I got invited to Le Web to demonstrate it working:

Successful Implementation!

Page 11: Adaptive payments-talk

Parallel Payments

Other types of Adaptive Payments

Page 12: Adaptive payments-talk

Pre-Approval - setupSetup Information

• duration of the preapproval, from the start date to the end date, inclusive

• the maximum amount being preapproved

• the maximum number of payments

Page 13: Adaptive payments-talk

Nice if you want to implement some kind of wallet functionality so it is easy for users to purchase stuff – all you need is a PIN number! (WP7 App usage anyone??)

Pre-Approval - usage

Page 14: Adaptive payments-talk

• To use some of the API’s your application needs to be submitted to PayPal for verification and approval.

• The approval process is pretty quick and painless, only took a week or so.

Operations requiring Advanced Permissions

• Chained payments

• Payments with implicit approval

• Preapprovals and preapproval cancellations

• Get preapproval details

Permission Levels

Page 15: Adaptive payments-talk

x.com

Where to go for more information

Page 16: Adaptive payments-talk

• What was the problems I had taking payment

• Why I chose PayPal’s ‘Chained Payment’ Adaptive Payments

• Some of the other types of Adaptive Payments are available

• Why they might be useful

• What does the code look like

• Where to get some more information

What I told you

Page 17: Adaptive payments-talk

@davehawes

http://blog.davehawes.com

Any Questions?