Checkout Page - Laravel Stripe/Paypal/Mercadopago Integration

Job ID: 33996229

Budget: $30 – $250 USD

We need to create a new checkout page to finish the payment.

Im attaching a eaxmple image (not final)

We currently have our own cart page, where the user can choose product, currency, type of subscription, etc.

The user selects all the options and goes to the the Checkout Page, with the following post data:

'user' => [
'email' => 'example(at)gmail.com',
'name' => 'Jhon Do',
'alias' => 'Mr Jhon',
],
'shipping' => [
'street' => 'St road',
'number' => '3412',
'cp' => '20983',
'country' => 'Mexico',
'city' => 'Aguascalientes',
'state' => 'Aguascalientes',
],
'products' => [
[
'name' => 'Product A',
'initial_price' => '860.70',
'final_price' => '660.70',
'img' => '{image_url}',
'extra_info' => [
'Address: 123 strret',
'Delivery: express'
],
],
[
'name' => 'Product B',
'initial_price' => '231.20',
'final_price' => '231.20',
'img' => '{image_url}',
'extra_info' => [
],
],
],
'payment' => [
'currencies' => [
'USD', 'MXN', 'CAD'
],
'methods' => [
'paypal' => true,
'mercadopago' => true,
'stripe' => true,
], // accepetd payment methods
'subtotal' => '891.90',
'shipping' => '50',
'discount' => '250',
'taxes' => '100',
'total' => '791.90',
],


you need to create the checkout page acording with the post data, and let the user choose a checkout method and do the payment.

The user will be able to add 1 coupon

After payment is success you should send the user with a post request with the same data you receive at checkout attaching the success payment data, to the url "/checkout/success"

the url for the checkout is "/checkout"

This will be integrated to current working project, so you will need to copy our project from github to your local.

You will need to create your own Stripe/Mercadopago & Paypal accounts to do the testing, and place the api keys in the .ENV file, so we can change them in production.

Let me know if you hava any questions
Related categories: PHP Website Design eCommerce HTML Laravel