forked from searchtool/PayPalPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSAiOSPaypalPlugin.h
43 lines (34 loc) · 1.17 KB
/
SAiOSPaypalPlugin.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// 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 <Cordova/CDVPlugin.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 : CDVPlugin<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