Does the PayPal API allow you to assign a price based on an algorithm? If so, how? -


i have been reviewing forum , documentation paypal api still uncertain 1 thing: can have algorithm determine price of services on paypal button (rather designing bunch of preset buttons , choosing 1 display)? have information feed in external database , appreciate tips on lever pull.

thank you!

you have make sure it's not hosted button, make amount included in hidden field form button. dynamically adjust amount based on logic want.

the down-side button isn't secure because people view source, copy html, change amount, , submit payment way. of course, there ways manage this, it's consider.

another option use express checkout api instead, in case secure , customizable handle pricing need to.