PHP code example of dystcz / dystore-stripe

1. Go to this page and download the library: Download dystcz/dystore-stripe library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

dystcz / dystore-stripe example snippets


$payment = App::make(StripePaymentAdapter::class);

// Get payment driver
$payment->getDriver();

// Get payment type
$payment->getType();

// Create a payment intent
$payment->createIntent($cart)

// Handle a webhook (validate and authorize payment)
$payment->handleWebhook($request)
bash
php artisan vendor:publish --provider="Dystore\Stripe\StripeServiceProvider" --tag="dystore.stripe"