Saltar al contenido principal

previewPaymentEmail

Returns the HTML of the payment-link or receipt email for one payment of the current account. It only renders the email and sends nothing. Arguments: - paymentId: Id of the payment (Charge.id). - emailType: Email to render. Always pass it: a call without it fails validation. - language: Two-letter language code, for example en: en, es, ca, pt, de, it or fr. Any other value gives English. A region suffix (es-ES) is ignored. Defaults to the customer's browser language, then the account language.

previewPaymentEmail(
paymentId: ID!
emailType: PaymentEmailType
language: String
): String

Arguments​

previewPaymentEmail.paymentId ● ID! non-null scalar​

previewPaymentEmail.emailType ● PaymentEmailType enum​

previewPaymentEmail.language ● String scalar​

Type​

String scalar​

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.