Home › Forums › WC Vendors Free Support › Adaptive payment Paykey duration › Reply To: Adaptive payment Paykey duration
Flow Of Website
In my website User “Search for incentive” by providing Address. If any product match that address, User can order limited quantity of that product. For Incentive products, user has to pay some amount and rest of the amount will be paid by subadmin user who owns that incentive program. so for example if total cost Product A is 20$ and its under incentive program which gives discount of 10$ to buyer, While purchasing the product, Buyer has to pay 10$ and subadmin user will pay 10$ for that product.
Once User click on “Place order” button, I am generating 2 payKeys by modifying your PayPal Adaptive payment Class. One pay key is for Buyer and another for subadmin user(Owner of incentive program). Once buyer complete the payment, orders goes into pending status and Subadmin user will receive email notifying about that order and link to make payment of remaining amount(Link to PayPal payment with paykey). Once clicked on pay link, Subadmin user can make payment for that order and order status will be processing and vendor will get email to ship the product to buyer.
In this process, Using one paykey buyer will pay instantly but Subadmin user can make payment even after 5 hour or 5 days. By default Paykey duration is 3 hours but by setting payKeyDuration parameter in pay request, we can extend it upto 30 days.
I’ve modified class but it does not take any effect. Paykey gets expired in 3 hours. I need to fix this urgently. Look forward to your reply soon.
I am using WC Vendros Pro as well in same site.