Skip to content

Commit d7d962e

Browse files
committed
- added encryption key info and bump version
1 parent 6e2680a commit d7d962e

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The minimum supported SDK version is 15
2828
**Step 2.** Add the dependency
2929

3030
dependencies {
31-
implementation 'com.github.Flutterwave:rave-android:1.0.29'
31+
implementation 'com.github.Flutterwave:rave-android:1.0.30'
3232
}
3333

3434
**Step 3.** Add the required permission
@@ -55,9 +55,8 @@ Set the public key, private key and other required parameters. The `RavePayManag
5555
.setlName(lName)
5656
.setNarration(narration)
5757
.setPublicKey(publicKey)
58-
.setSecretKey(secretKey)
58+
.setEncryptionKey(encryptionKey)
5959
.setTxRef(txRef)
60-
.acceptAccountPayments(boolean)
6160
.acceptCardPayments(boolean)
6261
.acceptMpesaPayments(boolean)
6362
.acceptGHMobileMoneyPayments(boolean)
@@ -77,24 +76,20 @@ Set the public key, private key and other required parameters. The `RavePayManag
7776
| setlName(lName) | This is the last name of the card holder or the customer | `String` | Required
7877
| setEmail(email) | This is the email address of the customer | `String` | Required
7978
| setNarration(narration) | This is a custom description added by the merchant | `String` | Not Required
80-
| setPublicKey(publicKey) | Merchant's public key | `String` | Required
81-
| setSecretKey(secretKey) | Merchant's secret key | `String` | Required
79+
| setPublicKey(publicKey) | Merchant's public key. | `String` | Required
80+
| setEncryptionKey(encryptionKey) | Merchant's encryption key | `String` | Required
8281
| setTxRef(txRef) | This is the unique reference, unique to the particular transaction being carried out. It is generated by the merchant for every transaction | `String` | Required
8382
| acceptAccountPayments(boolean) | Set to `true` if you want to accept payments via cards, else set to `false`. | `boolean` | Not Required
8483
| acceptCardPayments(boolean) | Set to `true` if you want to accept payments via bank accounts, else set to `false` | `boolean` | Not Required |
8584
| acceptMpesaPayments(boolean) | Set to `true` if you want to accept Mpesa payments, else set to `false` . For this option to work, you should set your country to `KE` and your currency to `KES` | `boolean` | Not Required |
8685
| acceptGHMobileMoneyPayments(boolean) | Set to `true` if you want to accept Ghana mobile money payments, else set to `false` . For this option to work, you should set your country to `GH` and your currency to `GHS`| `boolean` | Not Required |
8786
| onStagingEnv(boolean) | Set to `true` if you want your transactions to run in the staging environment otherwise set to `false`. Defaults to false | `boolean` | Not Required
88-
| allowSaveCardFeature(boolean) | Set to `true` if you want your users to be able to save their cards for later reuse otherwise set to `false` | `boolean` | Required
8987
| setMeta(`List<Meta>`) | Pass in any other custom data you wish to pass. It takes in a `List` of `Meta` objects | List<Meta> | Not Required
9088
|setSubAccounts(`List<SubAccount>`) | Pass in a `List` of `SubAccount`,if you want to split transaction fee with other people. Subaccounts are your vendors' accounts that you want to settle per transaction. To initialize a `SubAccout` class, do `SubAccount(String subAccountId,String transactionSplitRatio)` or `SubAccount(String subAccountId,String transactionSplitRatio,String transactionChargeType, String transactionCharge)` to also charge the subaccount a fee. [Learn more about split payments and subaccounts](https://developer.flutterwave.com/docs/split-payment).| `List<SubAccount>`| Not Required
9189
| withTheme(styleId) | Sets the theme of the UI. | `int` | Not Required
9290
| setPaymentPlan(payment_plan) | If you want to do recurrent payment, this is the payment plan ID to use for the recurring payment, you can see how to create payment plans [here](https://flutterwavedevelopers.readme.io/v2.0/reference#create-payment-plan) and [here](https://flutterwavedevelopers.readme.io/docs/recurring-billing). This is only available for card payments | `String` | Not Required
9391
| initialize() | Launch the Rave Payment UI | N/A | Required
9492

95-
> **SECURITY ALERT**
96-
> You should never store your **SECRET KEY** on the user's device
97-
9893
### 2. Handle the response
9994
In the calling activity, override the `onActivityResult` method to receive the payment response as shown below
10095

0 commit comments

Comments
 (0)