Skip to main content

Overview

Oceanpayment supports three approaches for credit card tokenization (card binding). Merchants can choose the option that best fits their integration needs:

How It Works

  1. The merchant’s frontend submits the required parameters to the Hosted Checkout endpoint via a form, with the methods parameter fixed to Credit Card.
<form action="https://test-secure.oceanpayment.com/gateway/service/create" method="post">
<input type="hidden" name="account" value="995149" />
<input type="hidden" name="terminal" value="99514901" />
<input type="hidden" name="signValue" value="e7cb35166f9066d2844c29a11ca43f4dd25a3e0f9d145579363a5a0124a901d1"/>
<input type="hidden" name="backUrl" value="http://127.0.0.1/result.php" />
<input type="hidden" name="customer_id" value="123456" />
<input type="hidden" name="methods" value="Credit Card" />
<input type="hidden" name="order_notes" value="abcd" />
<input type="hidden" name="billing_firstName" value="test" />
<input type="hidden" name="billing_lastName" value="test" />
<input type="hidden" name="billing_email" value="test@test.com" />
<input type="hidden" name="billing_phone" value="0755-123456789" />
<input type="hidden" name="billing_country" value="US" />
<input type="hidden" name="billing_state" value="WA" />
<input type="hidden" name="billing_city" value="Washington D.C." />
<input type="hidden" name="billing_address" value="705A big Road" />
<input type="hidden" name="billing_zip" value="529012" />
<input type="hidden" name="logoUrl" value="N/A" />
<input type="hidden" name="cssUrl" value="N/A" />
<input type="hidden" name="language" value="N/A" />
</form>
  1. The customer securely enters their card information on the Oceanpayment-hosted payment page.
  2. After the process is completed, the customer is redirected back to the merchant’s website.

Handling the Response

  1. The synchronous response depends on the backUrl.
Array
(
[account] => 995149
[terminal] => 99514901
[signValue] => F03C3D5154FC2672C5EC05BAD3DDDF0892617CC1517517DCD37E6499AA896D73
[customer_id] => customer_id20240507173540
[order_notes] => 20123456789
[card_number] => 411111***1111
[card_type] => Visa
[card_country] => PL
[quickpay_id] => 9ead3654-8f84-4d02-acab-6ac9dd10531f
[quickpay_status] => 1
[quickpay_details] =>1:Success
)

Signature

The signature (signValue) format differs depending on the Hosted Checkout redirect mode you choose. Refer the Signature and Verification section for detailed instructions.