Files
phonegap-plugins/iPhone/PayPalPlugin/SAiOSPaypalPlugin.h
2011-06-29 06:43:54 -07:00

48 lines
1.2 KiB
Objective-C

//
// SAiOSPaypalPlugin.h
// Paypal Plugin for PhoneGap
//
// Created by shazron on 10-10-08.
// Copyright 2010 Shazron Abdullah. All rights reserved.
#import <Foundation/Foundation.h>
#ifdef PHONEGAP_FRAMEWORK
#import <PhoneGap/PGPlugin.h>
#else
#import "PGPlugin.h"
#endif
#import "PayPal.h"
@interface PaypalPaymentInfo : NSObject
{
NSString* paymentCurrency;
NSString* paymentAmount;
NSString* itemDesc;
NSString* recipient;
NSString* merchantName;
}
@property (nonatomic, copy) NSString* paymentCurrency;
@property (nonatomic, copy) NSString* paymentAmount;
@property (nonatomic, copy) NSString* itemDesc;
@property (nonatomic, copy) NSString* recipient;
@property (nonatomic, copy) NSString* merchantName;
@end
@interface SAiOSPaypalPlugin : PGPlugin<PayPalMEPDelegate> {
UIButton* paypalButton;
PaypalPaymentInfo* paymentInfo;
}
@property (nonatomic, retain) UIButton* paypalButton;
@property (nonatomic, retain) PaypalPaymentInfo* paymentInfo;
- (void) prepare:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
- (void) pay:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
- (void) setPaymentInfo:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
- (void) payWithPaypal;
@end