Skip to content
This repository has been archived by the owner on Mar 4, 2019. It is now read-only.

Commit

Permalink
Merge pull request #6 from omise/readme-updated
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
Robin Clart committed Jun 24, 2015
2 parents 2d73a18 + 5898cff commit 9de5ee6
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,26 @@ Card.js
Getting started
---------------

Card.js is built on top of Omise.js enables you to easily integrate a payment form into your website, tablet or mobile device. Card.js creates an Omise.js token that you can use to create a charge with another Omise API client library (ruby, .net, ...) or with Omise Rest API.
Card.js is built on top of Omise.js which enables you to easily integrate a payment form into your website, tablet or mobile device. Card.js creates a token that you can send to your server to create a charge using another Omise API client library, such as ruby, nodejs, python, php, or with Omise Rest API.

Installation
------------

Include the card.js from Omise CDN to your checkout form as below
Available CDNs are:
- Singapore: `https://cdn.omise.co/card.js`
- Japan: `https://cdn2.omise.co/card.js`


```html
<html>
...
<body>
<form name="checkoutForm" method="POST" action="test.html">
<script type="text/javascript" src="https://omise-cdn.s3.amazonaws.com/card.js"
<!--Sample checkout for a 995.00 THB charge-->
<script type="text/javascript" src="https://cdn.omise.co/card.js.gz"
data-key="YOUR_PUBLIC_KEY"
data-amount="10025"
data-amount="99500"
data-currency="thb"
data-frame-label="Merchant site name">
</script>
Expand All @@ -34,5 +39,6 @@ Note that the data-amount attribute requires the amount to be paid in Satangs (1
How it works
------------

Card.js will render a "Pay now" button which when a user click at the payout button, a popup window with a credit card form will be displayed. The user will then fill out the credit card information and submit. If success, the popup will be closed and your form will be automatically submit to your server. Otherwise there will be the error information shown.
Card.js will render a "Pay now" button which when a user click at the payout button, a popup window with a credit card form will be displayed. The user will then fill out the credit card information and submit. If successful, the popup will be closed and your form will be automatically submitted to your server. Otherwise there will be an error information shown.

Full documentation: [https://docs.omise.co/card-js/](https://docs.omise.co/card-js/)

0 comments on commit 9de5ee6

Please sign in to comment.