Skip to main content

Overview

On the Oceanpayment payment page, you can customize the page style to match your brand and user experience requirements.

Supported Integrations

The following integration types support custom page styling:

Customization Method

  • You can modify the CSS style of the Oceanpayment payment page by passing the cssUrl parameter in the payment request.
  • The cssUrl should point to an online CSS file that is publicly accessible and must start with https://.

Style Reference

In your CSS file, you can customize the page by targeting the following classes and properties:

CSS ClassDescriptionExample Properties
.field__inputCard input fields• border
• border-radius
• background-color
• color
• font-size
.confirmPayment confirm button• border
• border-radius
• background-color
• color
• font-size
.cancelPayment cancel button• display
• border
• border-radius
• background-color
• color
• font-size

Hosted Checkout

Credit Card

  • Default page appearance
  • Custom CSS via cssUrl
<input type="hidden" name="cssUrl" value="https://www.oceanpayment.com.cn/wp-content/themes/oceanpayment/css/style-red.css" />

Embedded Integration

  • Default page appearance
  • Custom CSS via cssUrl
<script>
$(function() {
Oceanpayment.init(' ','https://www.oceanpayment.com.cn/wp-content/themes/oceanpayment/css/style-black.css','');
});
</script>