How to Integrate Payment Gateway Feature in Android

16,974

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/

Share:
16,974
Jimmy Hill
Author by

Jimmy Hill

Updated on June 05, 2022

Comments

  • Jimmy Hill
    Jimmy Hill about 2 years

    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....

  • Auto-Droid ツ
    Auto-Droid ツ almost 11 years
    knowledge.itdoctorz.com/141 the link is dead