Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of customField to chargeCard request parameters #42

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update to README file to include the new customField parameter usage
  • Loading branch information
Olayinka Okewale committed Nov 6, 2019
commit 03e271d114d128d0265afe9f911e84e9eb6e90e1
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ chargeCard() {
email: '[email protected]',
amountInKobo: 150000,
subAccount: 'ACCT_pz61jjjsslnx1d9',
customField: [
{display_name: "Product", value: "Prada Women Shoe"},
{display_name: "Product S/N", value: "1002345678"}
]
})
.then(response => {
console.log(response); // card charged successfully, get reference here
Expand Down Expand Up @@ -252,6 +256,7 @@ chargeCard() {
| transactionCharge (optional) | integer | the amount to be charged on a split-payment, use only when `subAccount` is set |
| bearer (optional) | string | sets which party bears paystack fees on a split-payment e.g. 'subaccount', use only when `subAccount` is set |
| reference (optional) | string | sets the transaction reference which must be unique per transaction |
| customField (optional) | Array | sets the custom fields you want included in the transaction details while viewing on paystack dashboard e.g. `customField: [{display_name: "Your display name", value: "Your set value"}, ..., {display_name: "...", value: "..."}]` [Check the implementation here](#Charging-a-Card-(iOS-&-Android)) |

#### Response Object

Expand Down Expand Up @@ -301,6 +306,7 @@ Perhaps needless to say, this module leverages the [Paystack Android SDK](https:
* 3.1.4: Miscellaneous and dependencies update on Android.
* 3.2.0: A Breaking Change - Initialize library in JS, rather than in native code.
* 3.3.0: Move to a CocoaPods Flow for iOS.
* 3.4.1: Minor update to include `customField` in request.

## 6. License

Expand Down
17 changes: 0 additions & 17 deletions android/.project

This file was deleted.

13 changes: 0 additions & 13 deletions android/.settings/org.eclipse.buildship.core.prefs

This file was deleted.