mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-01-13 00:18:13 -05:00
44 lines
1.2 KiB
Objective-C
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
|