PHP code example of xoxoday / razorpay

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

    

xoxoday / razorpay example snippets



return [
    'razorpay_key_id' => env('RAZORPAY_KEY_ID', 'Set your key ID'),

    'razorpay_key_secret' => env('RAZORPAY_KEY_SECRET', 'Set Your key secret'),

    'razorpay_api_url' => env('RAZORPAY_API_URL', 'https://api.razorpay.com/v1/'),

    'razorpay_contact_type' => env('RAZORPAY_CONTACT_TYPE', 'customer'),	

    'razorpay_account_number' => env('RAZORPAY_ACCOUNT_NUMBER', 'Set your Account Number'),

    'razorpay_fa_try' => env('RAZORPAY_FA_TRY', 3),
    'xorazorpay_multiple_reference_payout_allowed' => env('xorazorpay_multiple_reference_payout_allowed', '0')
];

sh
$ php artisan migrate
sh
$ php artisan vendor:publish  --tag="razorpay_files"