Skip to content

Commit d376878

Browse files
committed
Publishable to pubic on documents
1 parent f7b0011 commit d376878

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

GUIDE.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ We also support installing our SDK using Carthage. You can simply add github "pa
4444

4545
### Step 2: Configure API keys
4646

47-
First, you'll want to configure Paystack with your publishable API key. We recommend doing this in your `AppDelegate`'s `application:didFinishLaunchingWithOptions:` method so that it'll be set for the entire lifecycle of your app.
47+
First, you'll want to configure Paystack with your public API key. We recommend doing this in your `AppDelegate`'s `application:didFinishLaunchingWithOptions:` method so that it'll be set for the entire lifecycle of your app.
4848

4949
```Swift
5050
// AppDelegate.swift
@@ -54,7 +54,7 @@ import Paystack
5454
@UIApplicationMain
5555
class AppDelegate: UIResponder, UIApplicationDelegate {
5656
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
57-
Paystack.setDefaultPublishableKey("pk_test_xxxx")
57+
Paystack.setDefaultPublicKey("pk_test_xxxx")
5858
return true
5959
}
6060
}
@@ -70,20 +70,20 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
7070

7171
- (BOOL)application:(UIApplication *)application
7272
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
73-
[Paystack setDefaultPublishableKey:@"pk_test_xxxxx"];
73+
[Paystack setDefaultPublicKey:@"pk_test_xxxxx"];
7474
return YES;
7575
}
7676

7777
@end
7878
```
7979
80-
We've placed a test publishable API key as the PaystackPublishableKey constant in the above snippet. You'll need to swap it out with your live publishable key in production. You can see all your API keys in your dashboard.
80+
We've placed a test public API key as the PaystackPublicKey constant in the above snippet. You'll need to swap it out with your live public key in production. You can see all your API keys in your dashboard.
8181
8282
### Step 3: Collecting credit card information
8383
8484
#### Test Mode
8585
86-
When you're using your test publishable key, our libraries give you the ability to test your payment flow without having to charge real credit cards.
86+
When you're using your test public key, our libraries give you the ability to test your payment flow without having to charge real credit cards.
8787
8888
If you're building your own form or using `PSTCKPaymentCardTextField`, using the card number `4123450131001381` with CVC `883` (along with any future expiration date) will accomplish the same effect.
8989

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Note: The example app requires Xcode 8.0 to build and run.
3636
Before you can run the app, you need to provide it with your Paystack public key.
3737

3838
1. If you haven't already, sign up for a [Paystack account](https://dashboard.paystack.com/#/signup) (it takes seconds). Then go to https://dashboard.paystack.co/#/settings/developer.
39-
2. Replace the `paystackPublishableKey` constant in ViewController.swift (for the Sample app) with your Test Public Key.
39+
2. Replace the `paystackPublicKey` constant in ViewController.swift (for the Sample app) with your Test Public Key.
4040

4141
#### Additional Setup if you will be testing chargeToken
4242

0 commit comments

Comments
 (0)