-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from iamraphson/patch/paystack-connect
Upgrade inline to v2
- Loading branch information
Showing
25 changed files
with
230 additions
and
863 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export declare let callPaystackPop: (paystackArgs: Record<string, any>) => void; | ||
export declare const callPaystackPop: (paystackArgs: Record<string, any>) => void; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export declare let callPaystackPop: (paystackArgs: Record<string, any>) => void; | ||
export declare const callPaystackPop: (paystackArgs: Record<string, any>) => void; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import { InitializePayment, PaystackProps } from './types'; | ||
export default function usePaystackPayment(hookConfig: Partial<PaystackProps>): InitializePayment; | ||
import { HookConfig, InitializePayment } from './types'; | ||
export default function usePaystackPayment(hookConfig: HookConfig): InitializePayment; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* eslint-disable */ | ||
export let callPaystackPop = (paystackArgs: Record<string, any>): void => { | ||
// @ts-ignore | ||
const handler = window.PaystackPop && window.PaystackPop.setup(paystackArgs); | ||
handler && handler.openIframe(); | ||
import PaystackPop from '@paystack/inline-js'; | ||
|
||
export const callPaystackPop = (paystackArgs: Record<string, any>): void => { | ||
const paystack = new PaystackPop(); | ||
paystack.newTransaction(paystackArgs); | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
//@paystack/inline-js/index.d.ts | ||
declare module '@paystack/inline-js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "react-paystack", | ||
"version": "5.0.0", | ||
"version": "6.0.0", | ||
"description": "This is an reactJS library for implementing paystack payment gateway", | ||
"main": "dist/index.js", | ||
"module": "dist/index.es.js", | ||
|
@@ -28,7 +28,7 @@ | |
"paystack", | ||
"Gateway" | ||
], | ||
"author": "Ayeni Olusegun <[email protected]>", | ||
"author": "Olusegun Ayeni <[email protected]>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/iamraphson/react-paystack/issues" | ||
|
@@ -38,6 +38,9 @@ | |
"react": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0", | ||
"react-dom": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0" | ||
}, | ||
"dependencies": { | ||
"@paystack/inline-js": "^2.18.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.21.4", | ||
"@babel/preset-env": "^7.21.4", | ||
|