Skip to content

omise/examples

Repository files navigation

Opn Payments Source Code Examples

Examples for implementing the Opn Payments Gateway using various libraries:

The PHP example contains a front end form with the credit card that generates the token. The token is sent to checkout.php (server side) for creating a charge with Opn Payments using the Secret Key.

Ruby on Rails - ActiveMerchant

A demo store using Spree and the Omise-ActiveMerchant plugin.

Java

Example Java server to receive the token generated using Omise.js, and then create a Customer object and charge it.

ASP.NET Web Forms

Example ASP.NET Web Forms integration, with two pages. One uses Omise.js for a customer to enter credit card details, and the other receives the form and charges the token.