sdk day2

12
Confidential and Proprietary Feb, 2011 PayPal SDKs and APIs Knowledge sharing sessions Hackathon, 2011 Ganesh Hegde Vidya Chandrasekaran

Upload: ganeshx

Post on 15-May-2015

431 views

Category:

Economy & Finance


4 download

TRANSCRIPT

Page 1: Sdk day2

Confidential and Proprietary

Feb, 2011

PayPal SDKs and APIs

Knowledge sharing sessions

Hackathon, 2011

Ganesh HegdeVidya Chandrasekaran

Page 2: Sdk day2

Confidential and ProprietaryConfidential and Proprietary 2

AGENDA

• PayPal APIs - A quick recap• Website Payments Pro

o Demo• Demo – Using SDK in your project• Adaptive Accounts API

o Demo• Permissions API

o Demo• Q & A

04/12/2023

Page 3: Sdk day2

Confidential and ProprietaryConfidential and Proprietary 3

APIs Galore

04/12/2023

AP

CancelPreapprovalConfirmPreapprovalConvertCurrencyExecutePaymentGetAvailableShippingAddressesGetFundingPlansGetPaymentOptionsGetShippingAddressesPayPaymentDetailsPreapprovalPreapprovalDetailsRefundSetPaymentOptions

AA

Permissions

Merchant

AddBankAccountAddPaymentCardCreateAccountGetUserAgreementGetVerifiedStatusSetFundingSourceConfirmed

CancelPermissionsGetAccessTokenGetPermissionsRequestPermissions

DoDirectPayment - SaleDoDirectPayment - AuthorizationExpressCheckout - SaleExpressCheckout – Authorization

DoAuthorizationDoCaptureDoVoidGetTransactionDetailsTransactionSearchRefundTransactionReauthorizationMassPayGetBalance

CreateRecurringPaymentsProfileManageRecurringPaymentsProfileStatusGetRecurringPaymentsProfileDetailsBillOutstandingAmount

Page 4: Sdk day2

Confidential and ProprietaryConfidential and Proprietary 4

PayPal APIs

• What’s available• Web Payments Standard/Pro aka Merchant APIs• Platform/Adaptive APIs – Payments / Accounts / Permissions• Understand your use case and choose an appropriate API

• The technology• X.com/ Sandbox accounts• SOAP / XML / JSON / NVP• Authentication – 3token / certificates

• X.com and SDKs• https://www.x.com/community/ppx/sdks• https://www.x.com/community/ppx/documentation

04/12/2023

Page 5: Sdk day2

Confidential and ProprietaryConfidential and Proprietary 5

Website Payments Pro

• Do Direct Payments• Express Checkout• Authorization and capture• Recurring payments

04/12/2023

Page 6: Sdk day2

Confidential and ProprietaryConfidential and Proprietary 6

Creating a java project using sdk

• Get your API credentials.• Decide what you want to use - SOAP Or NVP?• Download the SDK.• Create a new project in your favourite IDE• Copy jar dependencies – Refer sample projects.• Configuration• Programming model• Deploy and fire a request• Debugging• A cup of coffee?

04/12/2023

Page 7: Sdk day2

Confidential and ProprietaryConfidential and Proprietary 04/12/2023 7

Adaptive accounts – An overview

• Create PayPal accounts programatically.

• Design your user onboarding/ checkout experience.

• Configure funding sources.

• SOAP/NVP/JSON/XML bindings supported.

704/12/2023

Page 8: Sdk day2

Confidential and ProprietaryConfidential and Proprietary 04/12/2023 8

Adaptive accounts – Typical flow

804/12/2023

Page 9: Sdk day2

Confidential and ProprietaryConfidential and Proprietary 04/12/2023 9

Permissions API – An overview

• The need for third party authorization.

• Terminology• Server • Third party – Your app• Client

• Subject and (pseudo) Oauth based authorization.

• Steps involved

• Get user to grant Permissions.• Obtain an access token• Use access token for making calls

904/12/2023

Page 10: Sdk day2

Confidential and ProprietaryConfidential and Proprietary 04/12/2023 10

Permissions API - Grant permissions

1004/12/2023

Page 11: Sdk day2

Confidential and ProprietaryConfidential and Proprietary 04/12/2023 11

Permissions API – Use permissions

• Subject SOAP header

• Unencrypted email address

• X-PP-AUTHORIZATION HTTP header

• Encrypted, per request token• Uses Oauth model.• Use the signature generation code from merchant SDK.

1104/12/2023

Page 12: Sdk day2

Confidential and ProprietaryConfidential and Proprietary 04/12/2023 12

Q & A

Thank you !

1204/12/2023