forked from recurly/recurly-js
/
update_billing_info.html
41 lines (39 loc) · 1.34 KB
/
update_billing_info.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>RecurlyJS Update Billing Info Example</title>
<!-- <link rel="stylesheet" href="../style/reset.css" type="text/css" /> -->
<link rel="stylesheet" href="examples.css" type="text/css" />
<link rel="stylesheet" href="../recurly.css" type="text/css" />
<script src="lib/jquery-1.6.1.js"></script>
<script src="../recurly.js"></script>
<script>
Recurly.config({
environment: 'sandbox'
, subdomain: 'recurlyjsdemo-test'
, currency: 'GBP'
, country: 'GB'
, VATPercent: 10
});
Recurly.buildBillingInfoUpdateForm({
target: '#recurly-update-billing-info'
, accountCode: 'testaccount'
, successURL: 'confirmation.html'
, signature: '1970639b53c29e9ed3f0a5c7574751caa1b30553-0'
// Signature must be generated server-side with a utility method provided in client libraries.
// e.g. Recurly::billing_info_signature(accountcode)
// It guarantees that you grant the end-user the right to update billing info for this account
// Without it the request will be rejected.
//
// The example signature only works for recurlyjsdemo-test
});
</script>
</head>
<body>
<h1>Update Billing Info</h1>
<h2>Account Code: testaccount (exists)</h2>
<div id="recurly-update-billing-info">
</div>
</body>
</html>