Download the PHP package wmd/craft-corvus-pay without Composer

On this page you can find all versions of the php package wmd/craft-corvus-pay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package craft-corvus-pay

CorvusPay for Craft Commerce

CorvusPay hosted checkout as a Craft Commerce gateway: cards with installments, refunds and partial refunds from the control panel, Croatian control-panel translations.

Requirements

Craft CMS 5.0+, Craft Commerce 5.0+, PHP 8.2+ with curl and SimpleXML, and a CorvusPay merchant account (a test store from CorvusPay for staging).

Installation

Then Commerce → System Settings → Gateways → New gateway, type CorvusPay.

Settings

Settings → Plugins → CorvusPay

Setting Notes
Store ID, Secret key from the CorvusPay merchant portal; environment variables are supported
Checkout URL https://wallet.test.corvuspay.com/ while testing, https://wallet.corvuspay.com/ in production
Merchant API URL https://testcps.corvus.hr/ while testing, https://cps.corvus.hr/ in production
Certificate file, private key file, key password the client certificate CorvusPay issued for the store; needed for status checks and refunds; keep the files outside the web root (@root/certs/…)
Installments mode none, fixed (number_of_installments), flexible (payment_all), tiered by order amount, or dynamic per card brand (payment_all_dynamic + payment_<brand>)
Logo shown next to the payment method, craft.corvus.logo in templates
Fallback success / cancel URL used when the order carries no return or cancel URL

In the CorvusPay merchant portal enter the two post-back URLs the settings page prints:

How a payment runs

  1. The customer picks the CorvusPay gateway and submits the Commerce payment form (commerce/payments/pay). The plugin builds the signed parameter set (amount, currency, order number, installments, cardholder data truncated to the manual's limits) and posts it to the hosted checkout. If the site sets Commerce's gatewayPostRedirectTemplate, that template renders the form.
  2. CorvusPay posts the result to the success or cancel URL. The plugin verifies the HMAC-SHA256 signature, reads the transaction status back from the merchant API over the client certificate, records a purchase transaction on the order and redirects to the order's return or cancel URL.
  3. Refunds from the order's Transactions tab: a full refund voids the transaction, a partial refund lowers the captured amount.

Currencies: the ISO 4217 codes CorvusPay lists (EUR, USD, GBP, CHF, BAM, RSD, CZK, HUF, PLN, SEK, NOK, DKK, AUD, CAD).

Testing

Use the test store credentials CorvusPay provides together with the test wallet URLs above; the test cards are listed in the CorvusPay integration manual.

License

MIT. Developed by WMD.


All versions of craft-corvus-pay with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
craftcms/cms Version ^5.0.0
craftcms/commerce Version ^5.0.0
ext-curl Version *
ext-simplexml Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wmd/craft-corvus-pay contains the following files

Loading the files please wait ...