The receipt builder reads the removed field.
This implementation accesses PaymentIntent.charges when creating a receipt. The new response shape needs a closer look here.
export function buildReceipt(payment) {
const charge = payment.charges.data[0];
return { receiptUrl: charge.receipt_url };
}
What to validate
Exercise receipt generation with the new response shape. Confirm the expected receipt URL is available.
Proposed scenario · Not executed by SpeccThe intended fallback when no charge is available needs engineer confirmation.