Saltar al contenido principal

sendPaymentReceipt

Sends the receipt of a completed payment of the current account to the customer by email, SMS or WhatsApp. The payment status must be SUCCEEDED, PARTIALLY_REFUNDED, REFUNDED or PAID_OUT. Without channel, it uses WhatsApp to the Bizum phone number for a Bizum payment, WhatsApp when customerPhone is set, else email when an address is known, else WhatsApp. SMS and WhatsApp fail in test mode. An email receipt carries a PDF copy. A customerEmail or customerPhone is saved on the payment when it has none. Arguments: - input: The payment and where to send its receipt.

sendPaymentReceipt(
input: SendPaymentMessageInput!
): Payment

Arguments​

sendPaymentReceipt.input ● SendPaymentMessageInput! non-null input​

Type​

Payment object​

A payment as the payment mutations return it (createPayment, refundPayment, capturePayment, cancelPayment and the send mutations). Amounts are integers in the smallest unit of the currency: cents for EUR, whole yen for JPY. To read a payment later, use charge.