How to process variable amounts on cronjob payment submissions

jheart
Contributor
Contributor

We are trying to figure out how to process our fees/commissions from revenue that we deliver to customer on daily basis.  Ideally, we thought running a cronjob every night would do the job, but since the amounts varies everyday, we can't seem to figure this out.  

For example, one day our commission/fees can be $10  and another day can be $100.  How can we create such cronjob?

 

Thank you!

Login to Me Too
1 REPLY 1

MTS_Chiranjeevi
Moderator
Moderator

Good day  @jheart,

 

Thank you for your post and welcome to the Community Forum.

 

NVP API integration : Pass the "PAYMENTREQUEST_n_AMT" value. 

 

Guide link - https://developer.paypal.com/api/nvp-soap/do-express-checkout-payment-nvp/#link-paymentdetailstypefi...

 

REST API integration : Pass the "amount" value. 

 

Guide link - https://developer.paypal.com/docs/api/payments/v1/#definition-amount

 

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

Haven't Found your Answer?

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