Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (33 sloc) 927 Bytes
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta content="width=device-width,initial-scale=1.0" name="viewport">
<link href="https://fonts.googleapis.com/earlyaccess/notosansjapanese.css" rel="stylesheet" type="text/css">
<title>PAY ID Checkout サンプル</title>
<style>
body {
font-family: 'Noto Sans Japanese', serif;
}
</style>
</head>
<body>
<h1>PAY ID Checkout サンプル</h1>
<p id="token"></p>
<script type="text/javascript">
function onCreated(response) {
document.querySelector('#token').innerHTML = 'Token = ' + response.id;
console.log(response);
}
</script>
<script
type="text/javascript"
src="https://checkout.pay.jp/"
class="payjp-button"
data-key="pk_test_0383a1b8f91e8a6e3ea0e2a9"
data-payjp="827cde0e3dd648d6d83c08b091b2b10c3c266e36"
data-on-created="onCreated"
data-partial="true">
</script>
</body>
</html>