MONETIZE YOUR IDEA!
Orkun Saitoglu
Evangelist, PayPal | Developer
@orkns
WHO AM I? @orkns
# Left back
# Galatasaray fan
# Developer
# Evangelist
# Tiramisu fan
3
HOW DOES PAYPAL WORK?
The future of commerce..
IT STARTED WITH….
PAYMENT STANDARD
EXPRESS CHECKOUT
# Propose the convenience and security of
PayPal on your web/mobile site and mobile
application
# Enable all platforms with one integration
# May eliminate the need for customers to
enter personal information, including shipping,
billing, or payment information
USE CASE : LOCAL BURGER HOUSE
9
MOBILE EC – MCDONALD’S FRANCE
10
SELECT YOUR RESTAURANT
11
SELECT YOUR MEAL
12
PAY WITH PAYPAL
13
CONFIRMATION
Request
SetExpressCheckout
Response: Token
HTTP Redirect
HTTP Redirect
ReturnURL + Token
Response: Customer Details
Request: Final Transaction Details
DoExpressCheckoutPayment
Response: Transaction Results
(Success / Failure)
Request: Token
GetExpressCheckoutDetails
- Establish PayPal session & return token
- Same call from shopping cart or payment page
- Send relevant transaction details to present on
the PayPal pages
- Use session token to pull details from
PayPal (Shipping and Billing Info, etc.)
- Commits the PayPal transaction
- Options include creating an order,
authorizations, or capturing the funds
from the buyer’s account
FRONT-END API CALLS
Set
Get
Do
API Server
API Server
API Server
Merchant
Web Server
15
# PAYMENTS CAN BE SIMPLE, CHAINED AND PARALLEL
# PAY, PAYMENTDETAILS, REFUND : ONLY 3 API CALLS
ADAPTIVE PAYMENTS
16
How curl -s --insecure
-H "X-PAYPAL-SECURITY-USERID: api_username"
-H "X-PAYPAL-SECURITY-PASSWORD: api_password"
-H "X-PAYPAL-SECURITY-SIGNATURE: api_signature"
-H "X-PAYPAL-REQUEST-DATA-FORMAT: NV"
-H "X-PAYPAL-RESPONSE-DATA-FORMAT: NV"
-H "X-PAYPAL-APPLICATION-ID: app_id"
https://svcs.sandbox.paypal.com/AdaptivePayments/Pay -d
"requestEnvelope.errorLanguage=en_US
&actionType=PAY
&senderEmail=sender@domain
&receiverList.receiver(0).email=receiver@domain
&receiverList.receiver(0).amount=100.00
&currencyCode=USD
&feesPayer=EACHRECEIVER
&memo=Simple payment example.
&cancelUrl=http://your_cancel_url
&returnUrl=http://your_return_url
&ipnNotificationUrl=http://your_ipn_notification_url”
API CALL:
PAY REQUEST
17
API RESPONSE:
responseEnvelope.timestamp=2009-07-13T12%3A34%3A29.316-07%3A00
&responseEnvelope.ack=Success
&responseEnvelope.correlationId=d615a365bed61
&responseEnvelope.build=DEV
&payKey=AP-3TY011106S4428730
&paymentExecStatus=COMPLETED
PAY RESPONSE
18
# DEVELOPER GET APPROVAL FOR CHARGING SENDERS
ACCOUNT
PREAPPROVAL PAYMENTS
NEW DEVELOPER SITE
PAYPAL CHECK-IN
GRAZIE MILLE
@paypaleurodev
@orkns

Codemotion1

Editor's Notes

  • #2 ----- Meeting Notes (23/03/13 14:53) -----ciao tuttimiki amo Orkunno parlo italiano