Use of a Lead Page is recommended but not required. Be sure to note the additional values that must be passed in Step 6 to complete checkout without it.
...
Note |
---|
This PayPal implementation should be used if you expect a consumer to checkout without entering any identifiable information. If however you are capturing the consumer’s name prior to checkout, then you may find it simpler to use this improved workflow to process PayPal transactions. |
Warning |
---|
Authorization trials (such as Hold Trial Charge, Authorize and Void, etc.) are not supported through PayPal Seamless Checkout |
Note |
---|
You must use live PayPal credentials. Using sandbox credentials will result in an error reading “Security error: Security header is not valid” |
Info |
---|
Please click here for instructions on integrating PayPal with a form code lander |
...
Code Block |
---|
{ "result": "SUCCESS", "message": { "sessionId": "a27dbdf0a6e047dc84c5cc542e7608c3" } } |
Lead Page
Note |
---|
Use of a Lead Page is recommended but not required. Be sure to note the additional values that must be passed in Step 6 to complete checkout without it. |
Step 2: Import Click - https://api.checkoutchamp.com/leads/import/?
...
(Example: https://myserver.com/PAYPAL_TEST/checkout.php?paypalAccept=1&ba_token=2345234523454 )
Call the Confirm Paypal endpoint is called to finalize the transaction.
Be sure to include Include the token, PayerID, and orderId values
token = token
payerId = PayerID
orderId = CheckoutChamp order ID (if using Import Lead)
For PayPal Commerce with reference transactions, be sure to pass include ba_token as
baToken = ba_token
Note |
---|
Also include the following values if they were passed in via Import Order and you are not using Import Lead call:
|
SUCCESS
Code Block |
---|
{ "result": "SUCCESS", "message": { "orderId": "5FFF3B1F5D", "ipAddress": "107.142.169.24", "sourceId": null, "sourceValue1": null, "sourceValue2": null, "sourceValue3": null, "sourceValue4": null, "sourceValue5": null, "shipCarrier": "Default", "shipMethod": "Default", "profileName": null, "dateCreated": "2017-07-19 16:41:31", "orderType": "NEW_SALE", "orderStatus": "COMPLETE", "reviewStatus": null, "totalAmount": "50.00", "campaignName": "PAYPAL_TEST", "orderValue": "50.00", "customerId": 67, "name": "Boss Cat", "emailAddress": "BossCat@fakeemail.com", "phoneNumber": "1231231234", "firstName": "Boss", "lastName": "Cat", "companyName": null, "address1": "100 Alley Cat Lane", "address2": "Apt 6", "shipmentInsured": null, "shipmentInsurancePrice": null, "insuranceCharged": 0, "city": "KittyCity", "state": "GA", "country": "US", "postalCode": "30000", "shipFirstName": "Boss", "shipLastName": "Cat", "shipCompanyName": null, "shipAddress1": "Alley Cat Lane", "shipAddress2": "Apt 6", "shipCity": "KittyCity", "shipState": "GA", "shipCountry": "US", "shipPostalCode": "30000", "custom1": null, "custom2": null, "custom3": null, "custom4": null, "custom5": null, "paySource": "PAYPAL", "cardType": null, "cardLast4": null, "cardExpiryDate": null, "achAccountHolderType": null, "achAccountType": null, "achRoutingNumber": null, "achNameOnAccount": null, "achAccountNumber": null, "couponCode": "undefined", "agentUserId": 202, "basePrice": "50.00", "baseShipping": "0.00", "voiceLogNumber": null, "discountPrice": "0.00", "salesTax": "0.00", "shipUpcharge": "0.00", "shipProfileId": null, "currencySymbol": "$", "campaignId": 6, "merchantTxnId": "2XP14303DE482013R", "originalCycleNumber": 1, "subTotal": "50.00", "shipTotal": "0.00", "taxTotal": "0.00", "totalDiscount": "0.00", "amountPaid": "50.00", "items": [ { "productId": "6", "name": "(1) ORIGIN", "qty": "1", "shipping": "0.00", "price": "50.00", "initialSalesTax": "0.00", "customSalesTax": "", "refundRemaining": "50.00", "purchaseStatus": "", "billingCycleType": "", "finalBillingCycle": "", "isPreauthVoid": "0", "nextBillDate": "", "trialEnabled": "", "trialType": "", "regularPrice": "", "productQty": "1", "cycle1_billDelay": "", "cycle2_price": "", "cycle2_shipPrice": "", "cycle2_isShippable": "0", "cycle2_billDelay": "", "cycle3_price": "", "cycle3_shipPrice": "", "cycle3_isShippable": "0", "cycle3_billDelay": "", "lastCustomCycle": "0", "purchaseCycle": "", "txnType": "SALE", "cancellationScheduled": "0", "cancelAfterDate": "", "billingCycleNumber": "1", "staggerIntervalCycles": "", "staggerFulfillments": "0" } ] } } |
...