Research Paypal with Laravel
Go to file Use this template
joseph le 8609630669 update README 2023-12-08 16:26:11 +07:00
app export excel 2023-12-07 16:01:32 +07:00
bootstrap test 2023-12-07 04:14:40 +00:00
config export excel 2023-12-07 16:01:32 +07:00
database test 2023-12-07 04:14:40 +00:00
public test 2023-12-07 04:14:40 +00:00
resources update README 2023-12-08 16:26:11 +07:00
routes export excel 2023-12-07 16:01:32 +07:00
storage test 2023-12-07 04:14:40 +00:00
tests test 2023-12-07 04:14:40 +00:00
.editorconfig test 2023-12-07 04:14:40 +00:00
.env.example test 2023-12-07 04:14:40 +00:00
.gitattributes test 2023-12-07 04:14:40 +00:00
.gitconfig test 2023-12-07 04:14:40 +00:00
.gitignore test 2023-12-07 04:14:40 +00:00
README.md update README 2023-12-08 16:26:11 +07:00
artisan test 2023-12-07 04:14:40 +00:00
composer.json export excel 2023-12-07 16:01:32 +07:00
composer.lock export excel 2023-12-07 16:01:32 +07:00
package-lock.json test 2023-12-07 04:14:40 +00:00
package.json test 2023-12-07 04:14:40 +00:00
phpunit.xml test 2023-12-07 04:14:40 +00:00
pnpm-lock.yaml test 2023-12-07 04:14:40 +00:00
postcss.config.js test 2023-12-07 04:14:40 +00:00
tailwind.config.js test 2023-12-07 04:14:40 +00:00
vite.config.js test 2023-12-07 04:14:40 +00:00

README.md

Sample project combining Paypal, reCaptcha, Excel export, laravel/breeze

Pay with Paypal

srmklive/paypal package

  • Install: composer require srmklive/paypal
  • Structure of order data:
[
    "intent" => "CAPTURE",
    "application_context" => [
        "return_url" => route('paypal.payment.success'),
        "cancel_url" => route('paypal.payment/cancel'),
    ],
    "purchase_units" => [
        0 => [
            'amount' => [
                'currency_code' => "",
                'value' => "",
                "breakdown" => [
                    "item_total" => [
                        "currency_code" => "",
                        "value" => "",
                    ],
                    "shipping" => [
                        "currency_code" => "",
                        "value" => "",
                    ],
                    "tax_total" => [
                        "currency_code" => "",
                        "value" => "",
                    ],
                    "discount" => [
                        "currency_code" => "",
                        "value" => "",
                    ],
                ],
            ],
            'items' => []
        ],
    ],
]
  • Structure of items data:
[
    [
        'id' => 1,
        'item' => [
            'name' => 'Laptop',
            'sku' => 'L001',
            'quantity' => '1',
            'unit_amount' => [
                'currency_code' => 'USD',
                'value' => '1000',
            ],
        ]
    ],
    [
        'id' => 2,
        'item' => [
            'name' => 'iPad',
            'sku' => 'I001',
            'quantity' => '1',
            'unit_amount' => [
                'currency_code' => 'USD',
                'value' => '500',
            ],
        ]
    ],
    
    ...
]

reCaptcha

anhskohbo/no-captcha package

Excel export

maatwebsite/excel package

Starter kits

laravel/breeze package

  • Install: composer require laravel/breeze