You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-26Lines changed: 26 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
10
10
## Introduction
11
11
12
-
The Angular SDK helps you create seamless payment experiences in your Angular mobile or web app. By connecting to our modal, you can start collecting payment in no time.
12
+
The Angular SDK helps you create seamless payment experiences in your Angular mobile or web app. By connecting to our modal, you can start collecting payments in no time.
13
13
14
14
Available features include:
15
15
@@ -30,8 +30,8 @@ Available features include:
30
30
31
31
## Requirements
32
32
33
-
1. Flutterwave version 3 API keys
34
-
2. Node version >= 14.15.0 and npm >= 6.14.8
33
+
1. Flutterwave version 3 [API keys](https://developer.flutterwave.com/v3.0.0/docs/authentication).
34
+
2. Node version >= 14.15.0 and npm >= 6.14.8.
35
35
3. Angular version >= 18.
36
36
37
37
## Installation
@@ -64,14 +64,14 @@ import { FlutterwaveModule } from "flutterwave-angular-v3"
64
64
})
65
65
```
66
66
67
-
> NB: If you experience compilation errors in your app after importing the Flutterwave module, component or service.
67
+
> NB: If you experience compilation errors in your app after importing the Flutterwave module, component, or service.
68
68
Kindly include the following line in tsconfig.app.json under `compilerOptions` :
| tx_ref | True | Your transaction reference. This MUST be unique for every transaction |
409
409
| amount | True | Amount to charge the customer. |
410
410
| currency | False | currency to charge in. Defaults to NGN |
411
-
| integrity_hash | False | This is a sha256 hash of your FlutterwaveCheckout values, it is used for passing secured values to the payment gateway. |
412
-
| payment_options | True | This specifies the payment options to be displayed e.g - card, mobilemoney, ussd and so on. |
411
+
| integrity_hash | False | This is a sha256 hash of your FlutterwaveCheckout values. It is used for passing secured values to the payment gateway. |
412
+
| payment_options | True | This specifies the payment options to be displayed e.g - card, mobilemoney, ussd, and so on. |
413
413
| payment_plan | False | This is the payment plan ID used for Recurring billing |
414
-
| redirect_url | False | URL to redirect to when a transaction is completed. This is useful for 3DSecure payments so we can redirect your customer back to a custom page you want to show them. |
415
-
| customer | True | This is an object that can contains your customer details: e.g - 'customer': {'email': 'example@example.com','phonenumber': '08012345678','name': 'Takeshi Kovacs' } |
416
-
| subaccounts | False | This is an array of objects containing the subaccount IDs to split the payment into. Check our Split Payment page for more info |
417
-
| meta | False | This is an object that helps you include additional payment information to your request e.g {'consumer_id': 23,'consumer_mac': '92a3-912ba-1192a' } |
418
-
| customizations | True | This is an object that contains title, logo, and description you want to display on the modal e.g{'title': 'Pied Piper Payments','description': 'Middleout isn't free. Pay the price','logo': 'https://assets.piedpiper.com/logo.png' } |
419
-
| callback (function) | False | This is the function that runs after payment is completed |
420
-
| close (function) | False | This is the function that runs after payment modal is closed |
414
+
| redirect_url | False | URL to redirect to when a transaction is completed. This is useful for 3DSecure payments, so we can redirect your customer back to a custom page you want to show them. |
415
+
| customer | True | This is an object that can contain your customer details: e.g, 'customer': {'email': 'example@example.com','phonenumber': '08012345678','name': 'Takeshi Kovacs' } |
416
+
| subaccounts | False | This is an array of objects containing the subaccount IDs to split the payment into. Check our [Split Payment page](https://developer.flutterwave.com/v3.0.0/docs/split-payments) for more info.|
417
+
| meta | False | This is an object that helps you include additional payment information to your request, e.g, {'consumer_id': 23,'consumer_mac': '92a3-912ba-1192a' } |
418
+
| customizations | True | This is an object that contains title, logo, and description you want to display on the modal e.g, {'title': 'Pied Piper Payments','description': 'Middleout isn't free. Pay the price','logo': 'https://assets.piedpiper.com/logo.png' } |
419
+
| callback (function) | False | This is the function that runs after payment is completed.|
420
+
| close (function) | False | This is the function that runs after the payment modal is closed.|
421
421
422
422
### Methods
423
423
424
424
Methods provided by FlutterwaveService and descriptions:
425
425
426
426
| Method Name | Parameters | Returns | Description |
| inlinePay | InlinePaymentOptions: Object | Null | This methods allows you to setup and open the payment modal via code |
429
-
| asyncInlinePay | AsyncPaymentOptions: Object | Promise | This methods allows you to setup and open the payment modal via code and returns a promise containing the payment response |
430
-
| closePaymentModal | waitDuration: number (Optional, default = 0) | Null | This methods allows you to close the payment modal via code. You can setup the wait time before modal close|
428
+
| inlinePay | InlinePaymentOptions: Object | Null | This method allows you to set up and open the payment modal via code |
429
+
| asyncInlinePay | AsyncPaymentOptions: Object | Promise | This method allows you to set up and open the payment modal via code and returns a promise containing the payment response |
430
+
| closePaymentModal | waitDuration: number (Optional, default = 0) | Null | This method allows you to close the payment modal via code. You can set up the wait time before the modal closes.|
431
431
432
432
433
433
## Debugging Errors
434
434
435
-
We understand that you may run into some errors while integrating our library. You can read more about our error messages [here](https://developer.flutterwave.com/docs/integration-guides/errors).
435
+
We understand that you may run into some errors while integrating our library. You can read more about our error messages [here](https://developer.flutterwave.com/v3.0.0/docs/common-errors).
436
436
437
437
For `authorization` and `validation` error responses, double-check your API keys and request. If you get a `server` error, kindly engage the team for support.
438
438
439
-
NB: If you experience compilation errors in your app after importing the Flutterwave module, component or service.
439
+
NB: If you experience compilation errors in your app after importing the Flutterwave module, component, or service.
440
440
Kindly include the following line in tsconfig.app.json under `compilerOptions` :
For additional assistance using this library, please create an issue on the Github repo or contact the developer experience (DX) team via [email](mailto:developers@flutterwavego.com) or on [slack](https://bit.ly/34Vkzcg).
450
+
For additional assistance using this library, please create an issue on the GitHub repo or contact the developer experience (DX) team via [email](mailto:developers@flutterwavego.com) or on [slack](https://bit.ly/34Vkzcg).
451
451
452
452
You can also follow us [@FlutterwaveEng](https://twitter.com/FlutterwaveEng) and let us know what you think 😊.
0 commit comments