API to save the card details securely for billing
name
, customer_email
, and amount
. Remember to
include the header Content-Type: application/x-www-form-urlencoded
.Parameter | Description | Example |
---|---|---|
name | Plan name | Spotify Premium |
description | description of the plan | Spotify Membership |
save_card | Save the card to charge the customer later | true |
customer_email | Customer email | paul@hitpayapp.com |
customer_name | Customer name | Paul |
amount | Amount related to the recurring billing | 9.90 |
currency | Currency related to the recurring billing | SGD |
payment_methods[] | Choice of payment methods you want to offer the customer. Default value is card | giro, card, shopee_recurring |
redirect_url | URL where hitpay redirects the user after the users enters the card details and the subscription is active. Query arguments reference (subscription id) and status are sent along | https://spotify.com/subscription-completed |
reference | Arbitrary reference number that you can map to your internal reference number. This value cannot be edited by the customer | XXXX123 |
webhook | Optional URL value to which hitpay will send a POST request when there is a new charge or if there is an error charging the card | https://webhoo.site/test |
send_email | Hitpay to send email receipts to the customer. Default value is false | true |
Parameter | Description | Example |
---|---|---|
currency | Currency related to the recurring billing | SGD |
amount | Amount related to the recurring billing | 9.90 |
Is it possible to Authorization an amount before charging?
Do I need to specify an amount to save a card for billing?
Can I modify the amount I will charge my customer later on?
Product Checklist