The Payment Method Hosted Pages API is designed for you to be able to create a hosted page on which a property can enter their payment method details. You will need to create a Billing Customer prior to hitting this endpoint.
Payment Method Hosted Pages require authentication
Make a POST request to the following endpoint:
https://app.staylists.com/api/v3/payment_method_hosted_pages
billing_customer_id
a string reference obtained from the Billing Customers API
redirect_url
the URL you’d like the customer to be redirect to after they’ve added or updated their Payment Method.
We’ll return a 200 with a body that looks something like this:
You can then send the customer to this URL.