Calculated field on paypal button

Evans05
Contributor
Contributor

To be clear: the clients are not buying items for a shopping cart then “checking out”. This is like them going to the cashier & paying their bill - and their final bill can be any amount. So therefore only two buttons required:
1. Booking deposit: £21 (£1 PayPal charges @5%)
2. Pay my bill = Bill+5%
How do I go about adding this to my WordPress website?

Login to Me Too
3 REPLIES 3

MTS_Chiranjeevi
Moderator
Moderator

Good day @Evans05,

 

Thank you for posting to the PayPal community.

 

Based on your business requirement, I would recommend to integrate our latest PayPal Checkout (Smart button) product.

Please follow the below steps via your PayPal account to create/generate PayPal Smart button code.

Login PayPal.com >> click on "settings icon" >> go to "Account settings" >> Website payments >> PayPal buttons >> select "Smart Buttons" button type >> fill all the required details >> copy & paste the button code on your website with the help of your website developer. 

(Or)

Login PayPal.com >> go to direct link "https://www.paypal.com/buttons/" >> follow the above steps

 

Guide link : https://developer.paypal.com/docs/checkout/standard/ 

I would suggest to please contact your website developer or the support of the eCommerce to cross check your internal website code and make sure your website is triggering unique Capture Order API calls. 

 

Merchants should handle their internal website (built via WordPress Commerce) code and trigger the API calls to PayPal system. 

 

Please refer the PayPal Orders API to set up a transaction based on your requirement. 

 

https://developer.paypal.com/docs/checkout/standard/integrate/#link-technicalflow 

 

https://developer.paypal.com/docs/api/orders/v2/ 

 

Merchants should first perform Create Order API(https://developer.paypal.com/docs/api/orders/v2/#orders_create) call and then redirect the customer/buyer to "approve" URL returned from the Create Order API response as below: 

{ "href": "https://www.paypal.com/checkoutnow?token=*******”, "method": "GET", "rel": "approve" },

Once the order is approved by the customer/buyer, merchant should perform Capture Order (https://developer.paypal.com/docs/api/orders/v2/#orders_capture) API call and customer/buyer should pass the valid funding source.

 

Sincerely,

Chiranjeevi

PayPal/Braintree MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too

Evans05
Contributor
Contributor

I have seen you solutions but what i need specifically is option to calculate the amount for the user and allow user to pay,,

Login to Me Too

MTS_Chiranjeevi
Moderator
Moderator

@Evans05,

 

Merchants should handle their internal website (built via WordPress Commerce) code and calculate the amount value and pass it in your API calls to PayPal system.

 

We recommend merchants to implement our latest REST API Smart button integration, mentioned in my previous email response.

 

I would suggest to please contact your website developer or the support of the eCommerce to cross check your internal website code and make sure your website is triggering unique Capture Order API calls. 

 

Please refer the PayPal Orders API to set up a transaction based on your requirement. 

 

https://developer.paypal.com/docs/checkout/standard/integrate/#link-technicalflow 

 

https://developer.paypal.com/docs/api/orders/v2/ 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.