Make the link to a customer's payment page
Shows the customer's invoices, payments, PDFs and receipts, read-only, with a pay button on open invoices. Works until expires_in_days (default 30, at most 365) or until revoked; the token is returned once.
Loading the operation...
Make the link to the provider's page where the customer saves a card for later charges POST
For a provider that has the customer save a payment method on its own page (Stripe: Checkout in setup mode). The answer is the address of that page; you send it to the customer. Nothing is charged. When the customer has saved the card, the provider tells Payrudder and the method becomes the customer's payment method (the string a charge takes, `cus_...:pm_...` at Stripe), which later invoices are charged with: there is nothing to call afterwards. The customer is made at the provider once and remembered, so asking again for the same customer reuses it. **Payrudder collects and keeps no consent in this flow.** The provider's guide asks you to collect the customer's explicit consent to be charged without them present (the amount and timing, how the amount is decided, how to cancel) and to keep a record of it: send the link together with your terms and keep the agreement yourself. The page is made in the environment of the key (a `sk_test_` Stripe account for a sandbox key). `return_url` must be `https`. `404 payments.customer.not_ready` for a customer that does not exist, `501` for a provider that cannot do this, and the provider's own refusal when the environment has no account for it.
Accept or reject a blocked customer's appeal POST
`accepted` lifts the block exactly as `POST /v1/customers/{external_id}/unblock` does (the history row, the `customer.unblocked` webhook event and, when you have the mail on, the customer's notice) and records your decision in the same step. `rejected` needs an `answer` (up to 1000 characters); the block stays and the customer sees your answer on their portal and may send another appeal. An appeal that was decided or closed is refused with `plans.customer_appeal.not_open`. Both decisions are audit entries (`customer_block.appeal_decided`); no webhook event is sent for a submitted appeal or a rejection. Needs customers:write.