Skip to content

Commit

Permalink
Add payment option feature
Browse files Browse the repository at this point in the history
  • Loading branch information
seunex17 committed Sep 10, 2024
1 parent 0e5bb81 commit 74ec7e3
Show file tree
Hide file tree
Showing 8 changed files with 1,207 additions and 464 deletions.
2 changes: 1 addition & 1 deletion build/.php-cs-fixer.cache

Large diffs are not rendered by default.

1,566 changes: 1,154 additions & 412 deletions composer.lock

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions src/Flutterwave/CollectPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ public static function standard(array $data): RedirectResponse
'Authorization' => 'Bearer ' . env('FLUTTERWAVE_SECRET_KEY'),
],
'json' => [
'tx_ref' => (string) $data['tx_ref'] ?? null,
'amount' => $data['amount'] ?? null,
'currency' => $data['currency'] ?? null,
'meta' => $data['meta'] ?? null,
'redirect_url' => $data['redirect_url'] ?? null,
'customer' => [
'tx_ref' => (string) $data['tx_ref'] ?? null,
'amount' => $data['amount'] ?? null,
'currency' => $data['currency'] ?? null,
'meta' => $data['meta'] ?? null,
'payment_options' => $data['payment_options'] ?? null,
'redirect_url' => $data['redirect_url'] ?? null,
'customer' => [
'email' => $data['customer_email'] ?? null,
'phonenumber' => $data['customer_phone'] ?? null,
'name' => $data['customer_name'] ?? null,
Expand Down
18 changes: 9 additions & 9 deletions src/Flutterwave/Webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

declare(strict_types=1);
/**
* Copyright (C) ZubDev Digital Media - All Rights Reserved
*
* File: Webhook.php
* Author: Zubayr Ganiyu
* Email: <[email protected]>
* Website: https://zubdev.net
* Date: 7/7/24
* Time: 11:01 AM
*/
* Copyright (C) ZubDev Digital Media - All Rights Reserved
*
* File: Webhook.php
* Author: Zubayr Ganiyu
* Email: <[email protected]>
* Website: https://zubdev.net
* Date: 7/7/24
* Time: 11:01 AM
*/

namespace Seunex17\FlutterwaveCi4\Flutterwave;

Expand Down
18 changes: 9 additions & 9 deletions tests/unit/CollectPaymentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

declare(strict_types=1);
/**
* Copyright (C) ZubDev Digital Media - All Rights Reserved
*
* File: CollectPaymentTest.php
* Author: Zubayr Ganiyu
* Email: <[email protected]>
* Website: https://zubdev.net
* Date: 7/6/24
* Time: 2:21 PM
*/
* Copyright (C) ZubDev Digital Media - All Rights Reserved
*
* File: CollectPaymentTest.php
* Author: Zubayr Ganiyu
* Email: <[email protected]>
* Website: https://zubdev.net
* Date: 7/6/24
* Time: 2:21 PM
*/

namespace unit;

Expand Down
18 changes: 9 additions & 9 deletions tests/unit/TransactionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

declare(strict_types=1);
/**
* Copyright (C) ZubDev Digital Media - All Rights Reserved
*
* File: TransactionTest.php
* Author: Zubayr Ganiyu
* Email: <[email protected]>
* Website: https://zubdev.net
* Date: 7/6/24
* Time: 5:11 PM
*/
* Copyright (C) ZubDev Digital Media - All Rights Reserved
*
* File: TransactionTest.php
* Author: Zubayr Ganiyu
* Email: <[email protected]>
* Website: https://zubdev.net
* Date: 7/6/24
* Time: 5:11 PM
*/

namespace unit;

Expand Down
18 changes: 9 additions & 9 deletions tests/unit/VerificationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

declare(strict_types=1);
/**
* Copyright (C) ZubDev Digital Media - All Rights Reserved
*
* File: VerificationTest.php
* Author: Zubayr Ganiyu
* Email: <[email protected]>
* Website: https://zubdev.net
* Date: 7/6/24
* Time: 5:40 PM
*/
* Copyright (C) ZubDev Digital Media - All Rights Reserved
*
* File: VerificationTest.php
* Author: Zubayr Ganiyu
* Email: <[email protected]>
* Website: https://zubdev.net
* Date: 7/6/24
* Time: 5:40 PM
*/

namespace unit;

Expand Down
18 changes: 9 additions & 9 deletions tests/unit/WebhookTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

declare(strict_types=1);
/**
* Copyright (C) ZubDev Digital Media - All Rights Reserved
*
* File: WebhookTest.php
* Author: Zubayr Ganiyu
* Email: <[email protected]>
* Website: https://zubdev.net
* Date: 7/7/24
* Time: 11:03 AM
*/
* Copyright (C) ZubDev Digital Media - All Rights Reserved
*
* File: WebhookTest.php
* Author: Zubayr Ganiyu
* Email: <[email protected]>
* Website: https://zubdev.net
* Date: 7/7/24
* Time: 11:03 AM
*/

namespace unit;

Expand Down

0 comments on commit 74ec7e3

Please sign in to comment.