Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Integrate Payment Gateway Feature in Android [closed]

How to Integrate Payment Gateway Feature in Android App, I have made a Shopping Cart App in which now i want to add Payment Gateway Feature, please suggest me... the best way to allow user to do Payments

Should i need to use some readymade classes or need to import any Payment SDK....

like image 705
Jimmy Hill Avatar asked Apr 04 '13 09:04

Jimmy Hill


1 Answers

Hi @JimmyHill few days ago i was in same situation and this link helped me : http://knowledge.itdoctorz.com/141/

Use below code:

Public void onClick (View v) {

PayPalPayment payment = new PayPalPayment();

payment.setSubtotal(new BigDecimal(“8.25″));

payment.setCurrencyType(“USD”);

payment.setRecipient(“[email protected]”);

payment.setPaymentType(PayPal.PAYMENT_TYPE_GOODS);

Intent checkoutIntent = PayPal.getInstance().checkout(payment, this);

startActivityForResult(checkoutIntent, 1);

}

I hope this link will help you :)

Update::

Added the new link to the answer which have a detailed steps to integrate payment gateway feature in android

Link :: https://developer.paypal.com/docs/classic/mobile/ht_mpl-itemPayment-Android/

like image 79
ASMUIRTI Avatar answered Oct 01 '22 19:10

ASMUIRTI