Skip to content

Commit ae6beeb

Browse files
committed
fix(readme.md): specify use of public key as authorization
1 parent 8f5c009 commit ae6beeb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ import {PayWithFlutterwave} from 'flutterwave-react-native';
9494
onRedirect={handleOnRedirect}
9595
options={{
9696
tx_ref: transactionReference,
97-
authorization: '[merchant secret key]',
97+
authorization: '[merchant public key]',
9898
customer: {
9999
email: 'customer-email@example.com'
100100
},
@@ -159,7 +159,7 @@ try {
159159
// initialize payment
160160
const paymentLink = await FlutterwaveInit({
161161
tx_ref: generateTransactionRef(),
162-
authorization: '[your merchant secret Key]',
162+
authorization: '[your merchant public Key]',
163163
amount: 100,
164164
currency: 'USD',
165165
customer: {
@@ -183,7 +183,7 @@ try {
183183
[See Interface](#flutterwaveinitoptions-interface)
184184
| Name | Required | Type | Default | Description |
185185
| --------- | --------- | ---- | ------- | ----------- |
186-
| authorization | Yes | string | **REQUIRED** | Your merchant secret key, see how to get your [API Keys](https://developer.flutterwave.com/v3.0/docs/api-keys)|
186+
| authorization | Yes | string | **REQUIRED** | Your merchant public key, see how to get your [API Keys](https://developer.flutterwave.com/v3.0/docs/api-keys)|
187187
| tx_ref | Yes | string | **REQUIRED** | Your transaction reference. This MUST be unique for every transaction.|
188188
| amount | Yes | string | **REQUIRED** | Amount to charge the customer. |
189189
| currency | No | string | NGN | Currency to charge in. Defaults to NGN. |

0 commit comments

Comments
 (0)