PHP code example of delower186 / twocheckout

1. Go to this page and download the library: Download delower186/twocheckout 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/ */

    

delower186 / twocheckout example snippets


Delower186\Twocheckout\TwocheckoutServiceProvider

Delower186\Twocheckout\TwocheckoutServiceProvider::class

'Twocheckout' => Delower186\Twocheckout\Facades\Twocheckout 

'Twocheckout' => Delower186\Twocheckout\Facades\Twocheckout::class

use Delower186\Twocheckout\Facades\Twocheckout;

Twocheckout::loadScripts() // use this method in the bottom of product page

Twocheckout::buyNow($price) //use this method as buyNow button product price as parameter, it can be customized using css classes

Twocheckout::store($request) //use this method to store order info sent by 2checkout, publish views & migrations to customize
bash
php artisan vendor:publish