Yes ... You can use PayPal with your application. You can see the full documentation at the link below ....
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/library_documentation#mobile
Add the following code to your .h file
#import "PayPal.h" #import "PayPalList.h" typedef enum PaymentStatuses { PAYMENTSTATUS_SUCCESS, PAYMENTSTATUS_FAILED, PAYMENTSTATUS_CANCELED, } PaymentStatus;
Implement this delegate method "PayPalPaymentDelegate"
PayPalList *payPalList; PaymentStatus status;
Add the following code to your .m file
#import "PayPalPayment.h" #import "PayPalAdvancedPayment.h" #import "PayPalAmounts.h" #import "PayPalReceiverAmounts.h" #import "PayPalAddress.h" #import "PayPalInvoiceItem.h" #define SPACING 3. - (void)ButtonWithType:(PayPalButtonType)type withAction:(SEL)action { UIButton *btnPayWithPayPal = [[PayPal getInstance] getPayButtonWithTarget:self andAction:action andButtonType:type]; CGRect frame; frame.origin.x = 60; frame.origin.y = 315; frame.size.width = 304; frame.size.height = 40; btnPayWithPayPal.frame = frame; [self.view addSubview:btnPayWithPayPal]; } - (void)viewDidLoad { [self ButtonWithType:BUTTON_194x37 withAction:@selector(simplePayment)]; } #pragma mark - #pragma mark PayPalPaymentDelegate methods - (void)paymentSuccessWithKey:(NSString *)payKey andStatus:(PayPalPaymentStatus)paymentStatus { status = PAYMENTSTATUS_SUCCESS; } - (void)paymentFailedWithCorrelationID:(NSString *)correlationID andErrorCode:(NSString *)errorCode andErrorMessage:(NSString *)errorMessage { status = PAYMENTSTATUS_FAILED; } - (void)paymentCanceled { status = PAYMENTSTATUS_CANCELED; } - (void)paymentLibraryExit { UIAlertView *alert = nil; switch (status) { case PAYMENTSTATUS_SUCCESS: break; case PAYMENTSTATUS_FAILED: alert = [[UIAlertView alloc] initWithTitle:@"Order failed" message:@"Your order failed. Touch \"Pay with PayPal\" to try again." delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil]; break; case PAYMENTSTATUS_CANCELED: alert = [[UIAlertView alloc] initWithTitle:@"Order canceled" message:@"You canceled your order. Touch \"Pay with PayPal\" to try again." delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil]; break; } [alert show]; [alert release]; } - (PayPalAmounts *)adjustAmountsForAddress:(PayPalAddress const *)inAddress andCurrency:(NSString const *)inCurrency andAmount:(NSDecimalNumber const *)inAmount andTax:(NSDecimalNumber const *)inTax andShipping:(NSDecimalNumber const *)inShipping andErrorCode:(PayPalAmountErrorCode *)outErrorCode {
From the links you can get an idea about PayPal
https://www.x.com/community/ppx/xspaces/mobile/mep
https://www.x.com/docs/DOC-2532
https://cms.paypal.com/cms_content/US/en_US/files/developer/IPNGuide.pdf
https://cms.paypal.com/cms_content/US/en_US/files/developer/PP_MPL_Developer_Guide_and_Reference_Android.pdf
https://www.x.com/thread/45094
https://www.x.com/message/193751#193751
http://googlecheckout.blogspot.com/2010/06/pay-on-go-with-android-payment.html
https://chrome.google.com/webstore/detail/omomllobcfbllglbhpmafongpckhdcdn
Thanx ....