Skip to content

Commit ed17ba7

Browse files
committed
[++] Add plan and currency support
1 parent 03c35d7 commit ed17ba7

9 files changed

Lines changed: 21 additions & 6 deletions

File tree

CHANGELOG

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
=== 2.1.1 2016-11-13
2+
3+
* Add plan and currency
4+
5+
Add plan and currency support
6+
17
=== 2.1.0 2016-11-13
28

39
* Add Metadata

Example/Paystack iOS Example/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>APPL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>2.1.0</string>
18+
<string>2.1.1</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

Example/Paystack iOS Example/ViewController.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,12 @@ class ViewController: UIViewController, PSTCKPaymentCardTextFieldDelegate {
147147
// transactionParams.subaccount = "ACCT_80d907euhish8d";
148148
// transactionParams.bearer = "subaccount";
149149
// transactionParams.transaction_charge = 280;
150-
150+
151+
/* MULTI CURRENCY SUPPORT */
152+
// transactionParams.currency = "NGN";
153+
/* SUBSCRIPTION SUPPORT */
154+
// transactionParams.plan = "PLN_sjkhdow898euj";
155+
151156
let dateFormatter = DateFormatter()
152157
dateFormatter.dateFormat = "EEE, dd MMM yyy hh:mm:ss +zzzz"
153158
transactionParams.reference = "ChargedFromiOSSDK@" + dateFormatter.string(from: Date.init()); // if not supplied, we will give one

Paystack.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'Paystack'
3-
s.version = '2.1.0'
3+
s.version = '2.1.1'
44
s.summary = 'Paystack is a web-based API helping African Businesses accept payments online.'
55
s.description = <<-DESC
66
Paystack makes it easy for African Businesses to accept Mastercard, Visa and Verve cards from anyone, anywhere in the world.

Paystack/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>2.1.0</string>
18+
<string>2.1.1</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

Paystack/PSTCKTransactionParams.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ + (NSDictionary *)propertyNamesToFormFieldNamesMapping {
9797
@"transaction_charge": @"transaction_charge",
9898
@"bearer": @"bearer",
9999
@"metadata": @"metadata",
100+
@"plan": @"plan",
101+
@"currency": @"currency",
100102
};
101103
}
102104

Paystack/PublicHeaders/PSTCKAPIClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#import <UIKit/UIViewController.h>
99
#endif
1010

11-
static NSString *const __nonnull PSTCKSDKVersion = @"2.1.0";
11+
static NSString *const __nonnull PSTCKSDKVersion = @"2.1.1";
1212

1313
@class PSTCKCard, PSTCKCardParams, PSTCKTransactionParams, PSTCKToken;
1414

Paystack/PublicHeaders/PSTCKTransactionParams.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
@property (nonatomic) NSInteger transaction_charge;
1818
@property (nonatomic, copy, nullable) NSString *bearer;
1919
@property (nonatomic, readonly, nullable) NSString *metadata;
20+
@property (nonatomic, readonly, nullable) NSString *plan;
21+
@property (nonatomic, readonly, nullable) NSString *currency;
2022

2123
- (nullable PSTCKTransactionParams *) setMetadataValue:(nonnull NSString*)value
2224
forKey:(nonnull NSString*)key

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.1.0
1+
2.1.1

0 commit comments

Comments
 (0)