Skip to main content
View on the marketplace

Installation

  • 1) Have an account with your provider (Worldline Direct, PAYONE Global Online Pay, CAWL or ANZ Worldline). PAYONE opens a free test account at signup.preprod.payone.com; with Worldline, CAWL or ANZ, ask your provider for one. The live account comes with your contract and has its own keys.
  • 2) Log in to your merchant portal (for PAYONE, portal.preprod.payone.com for the test account and portal.payone.com for the live one) and note your PSPID, shown at the top of the portal.
  • 3) Open Developer, Payment API, and generate an API key: copy the API Key ID and the Secret API Key. The secret is shown only once.
  • 4) Install this plugin on your website: the Joomla extension manager, or HikaShop's plugin installer on WordPress. The plugin needs PHP 8.3 or higher.
  • 5) In HikaShop, go to System > Payment methods, click "New" and choose Worldline Direct. Fill in the PSPID and the two keys, choose the environment (Pre-Production for a test account, Production for a live one) and the endpoint of your provider (PAYONE for a PAYONE account), set "Published" to Yes and save.
  • 6) In your portal, turn on the payment methods you want to offer. No webhook has to be set up: the plugin gives its notification address with each payment.
  • 7) To show the card form on your own checkout page instead of sending the customer to the payment page (Hosted Tokenization Page), set "Integration method" to Hosted Tokenization Page. To give that form your own look, make a template with the Template Builder of your provider (in the test environment, for CAWL https://payment.preprod.ca.cawl-solutions.fr/template/builder/tokenization) or from Worldline's examples at https://github.com/Online-Payments/hostedtokenization-templates, have it uploaded to your account (in your merchant portal, or by your provider's support when your portal does not offer it), and type its file name in "Template of the card form". The card form only takes cards: to offer PayPal, wallets or other methods as well, add a second Worldline Direct payment method on the Hosted Checkout Page.
  • 8) If your website sends a Content-Security-Policy header (Joomla's HTTP Headers plugin, a security extension or your server), allow the host of your provider (for example https://payment.ca.cawl-solutions.fr for CAWL, https://payment.direct.worldline-solutions.com for Worldline Direct, and their payment.preprod hosts for tests) in script-src, frame-src and connect-src, or the card form cannot load.
  • 9) If your website uses Akeeba Admin Tools' .htaccess Maker, or any other server hardening that restricts which PHP files can be reached at the root of the website (often called entry point filtering or allowed front-end files), allow worldlinedirect_*.php in the list of allowed files and regenerate your .htaccess. When the payment method is saved, the plugin writes a small return file named worldlinedirect_ followed by the payment method number, at the root of your website, so that the return address stays short enough for the payment page. If your hardening blocks it, customers see a "403 Forbidden" page when they come back although they paid, and the order waits for the notification. When the root of the website is not writable, the plugin uses a longer return address through index.php instead, which is not affected.

Configuration

The Worldline Direct settings in the HikaShop payment method

  • PSPID: the PSPID of your merchant account (step 2). A test account and a live account have different PSPIDs. Left empty, the payment cannot start.
  • API Key ID and Secret API Key: the keys of step 3, from the same account and environment as the PSPID. Left empty, the payment cannot start.
  • Environment: Pre-Production (test) takes no real payment and uses the keys of your test account; Production takes real payments with the keys of your live account.
  • Endpoint: your provider: Worldline Direct, CAWL (Credit Agricole), PAYONE (Global Online Pay), ANZ Worldline Solutions (Australia), GlobalCollect or WL Online Payment Acceptance. Choose the one your contract is with; the payment page then carries its name and look.
  • Variant name: the template of the payment page made in your portal (Branding), to show your colours and logo, with the Hosted Checkout Page. Empty, the default page is shown.
  • Integration method: Hosted Checkout Page (redirect), the default, sends the customer to the payment page of your provider, with every payment method of your account. Hosted Tokenization Page (card form on your website) shows your provider's card form on the last page of your checkout, in an iframe, with the order (products, totals, addresses) on its left, or above it where the page is narrow: the customer types the card there, pays with the button under it, and goes through 3-D Secure when the bank asks. Cards only. A refused card can be replaced by another one on the same page.
    The card form of the Hosted Tokenization Page on the last page of the checkout
  • Template of the card form: with the Hosted Tokenization Page only, the file name of your template for the card form as uploaded to your account (for example MyTemplate.html, step 7). Empty, the default form is shown. A name your account does not have also shows the default form, without any message: check the spelling when your design does not show.
  • Saved cards: with the Hosted Tokenization Page only. Yes shows "Save this card for my next purchases" under the card form to customers with an account (never to guests). A saved card is kept by your provider; the website only keeps its brand, last four digits and expiry date. Next time, the customer chooses it above the form and types only its security code. They see and delete their saved cards in their account (Payment methods), and a deleted card is deleted at your provider too. Needs HikaShop 6.7.1 or later. No by default.
    A saved card chosen above the card form: only its security code is asked
  • 3D Secure Challenge Indicator (for credit card payments): whether you want the bank of the customer to ask them to authenticate on card payments: no preference (default), prefer not to challenge, prefer to challenge, or require the challenge. Keep the default unless your provider tells you otherwise.
  • Debug: No by default. Yes writes the requests and answers of your provider to the payment log file of the HikaShop configuration page, to look into a problem.
  • Return url: not used, the plugin makes the return address itself. Leave it empty.
  • Invalid status: not used by this version: a payment cancelled on the payment page cancels the order.
  • Verified status: the status of an order once its payment is accepted, usually "confirmed". Choose the status that sends your customer the confirmation email.
  • The other settings of the page (name, description, images, price, zone, currency, restrictions) are the same as for every HikaShop payment method.

Troubleshooting

  • Turn Debug on and open the payment log (System > Configuration, Files, "See the report" next to "Payment log file"): the answers of your provider are written there.
  • "You have to configure a PSPID", "the API Key" or "the Secret API Key": one of these settings is empty.
  • MISSING_OR_INVALID_AUTHORIZATION in the payment log: the keys do not belong to the PSPID, or the keys of a test account are used in Production (or the reverse).
  • "The endpoint Ogone (EU)" (or "TechProcess (India)") "of this payment method no longer exists": those servers were shut down and payments now go to Worldline Direct. Choose the endpoint of your contract and save the payment method.
  • "Worldline Direct payment error" or "Error during the Worldline Direct payment request" (log): the payment page could not be opened; the end of the message is your provider's reason.
  • The customer sees "403 Forbidden" on coming back from the payment page: see step 9 of the installation.
  • "The card form could not be loaded. Please reload the page." (Hosted Tokenization Page): the form of your provider did not load. Look in the browser's console for a Content-Security-Policy error (step 8) or a blocked script, and check the keys and environment.
  • "Your card was refused. Please check its details or use another card.": the bank declined the card; the customer can try another one on the same page.
  • "The payment could not be made. Please try again.": the payment request failed; "Error during the Worldline Direct payment request" in the payment log gives your provider's reason.
  • "Too many payment attempts for this order. Please contact us.": ten payments were tried from the card form of one order. The customer makes a new order or pays another way.
  • WEBHOOKS_INVALID_URL_FORMAT in the payment log: the address of your website is not one your provider accepts. Since 3.0.0 the notification address is not sent from a website without a public address (localhost, a name without a dot); a public website does not meet it.
  • INVALID_VALUE on returnUrl in the payment log: the return address is too long. Check that the return file of step 9 can be written at the root of your website, and save the payment method again.
  • "Unable to retrieve the order ID from the hostedCheckoutId" (shown and logged): the shop received a return or a notification without an order reference. Check the order and the payment in your portal.