Reputation: 1894
I have two different Uber-like android phonegap apps, one client app and other driver app. Client can call a driver for ride from his app. The minimum charge is 20$ for 10 km and 3$ for each extra km (more than 10 km). Client will enter credit card credentials while signing and can only take ride after logged in. When ride is complete, driver will enter the total distance covered. My question is, how can I use paypal to charge user from driver app? Any tutorial on phonegap SDK that will address my need? Any help will be appreciated, thank you in advance.
Upvotes: 0
Views: 507
Reputation: 31614
What would probably work best would be to authorize the user's credit card, then capture the funds when the driver enters mileage. The process would look like this
I would use AJAX from within Cordova to do your calls.
Upvotes: 1