pai
    Preparing search index...

    Type Alias CardPaymentRequest

    A card payment from POST /purchase/card with hosted: true.

    type CardPaymentRequest = {
        amount_cents: number;
        checkout_url: string;
        payment_id: string;
        recovery_code: string;
    }
    Index
    amount_cents: number

    What the card is charged, in US cents: the price plus 5% plus 30 cents.

    checkout_url: string

    Stripe's checkout page, where the buyer enters the card.

    payment_id: string

    The id to check the payment with, as in pai payment <id>.

    recovery_code: string

    A code pai sends back in the x-phantom-recovery-code header when it checks the payment. With it, a new key can be fetched again later.