Download the PHP package worldline-ind/php-checkoutjs without Composer
On this page you can find all versions of the php package worldline-ind/php-checkoutjs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download worldline-ind/php-checkoutjs
More information about worldline-ind/php-checkoutjs
Files in worldline-ind/php-checkoutjs
Package php-checkoutjs
Short Description PHP CheckoutJS integration for Worldline
License MIT
Informations about the package php-checkoutjs
PHP CheckoutJS Integration Documentation
PHP CheckoutJS Integration
Integrate your PHP applications with Worldline's CheckoutJS to seamlessly handle payments.
Badges
Table of Contents
- Installation
- Configuration
- Usage
- Basic Usage
- Advanced Features
- Examples
- Testing
- Contributing
- License
Installation
Install the package via Composer:
composer require worldline-ind/php-checkoutjs
Configuration
Place the worldline_AdminData.json
file in your project root with the following contents:
{
"merchantCode": "YOUR_MERCHANT_CODE",
"merchantSchemeCode": "YOUR_SCHEME_CODE",
"salt": "YOUR_SALT",
"typeOfPayment": "TEST",
"currency": "INR",
"primaryColor": "#000000",
"secondaryColor": "#FFFFFF",
"buttonColor1": "#0000FF",
"buttonColor2": "#FFFFFF",
"logoURL": "https://yourdomain.com/logo.png",
"enableExpressPay": true,
"separateCardMode": false,
"enableNewWindowFlow": true,
"merchantMessage": "Thank you for your order!",
"disclaimerMessage": "Please review your order before proceeding.",
"paymentMode": "ALL",
"paymentModeOrder": "NB,CARD,UPI",
"enableInstrumentDeRegistration": false,
"transactionType": "SALE",
"hideSavedInstruments": false,
"saveInstrument": false,
"displayTransactionMessageOnPopup": false,
"embedPaymentGatewayOnPage": false,
"enableEmandate": false,
"hideSIConfirmation": false,
"expandSIDetails": false,
"enableDebitDay": false,
"showSIResponseMsg": false,
"showSIConfirmation": false,
"enableTxnForNonSICards": false,
"showAllModesWithSI": false,
"enableSIDetailsAtMerchantEnd": false
}
Usage
Basic Usage
Initialize the Checkout Class:
Process Payment Request:
Handle Payment Response:
Advanced Features
Explore additional functionalities such as refunds, reconciliation, and server-to-server communication within the documentation.
Testing
Run the following command to execute tests:
phpunit
Contributing
Contributions are welcome! Please see CONTRIBUTING.md
for more details.
License
This project is licensed under the MIT License - see the LICENSE file for details.