Files
phonegap-plugins/iPhone/PayPalPlugin/SAiOSPaypalPlugin.h
2010-10-08 11:44:44 -07:00

44 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>
#import "PhoneGapCommand.h"
#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 : PhoneGapCommand<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