
주문 발송 완료
주문 번호, 택배사, 예상 도착일을 세부 정보 표에 담은 발송 알림.
거절된 결제의 금액, 카드, 재시도 날짜, 이후 진행을 알려 줍니다.

We could not charge your card for {{productName}}
Your payment did not go through
We tried to charge {{amount}} for {{productName}} and the card ending {{cardLast4}} was declined. This is usually an expired card or a bank blocking an unfamiliar charge rather than anything to do with your account.
We will try again on {{retryDate}}. {{consequence}}
Update payment method [{{actionUrl}}]
{{footerNote}}샘플 값으로 표시했습니다. HTML 탭과 일반 텍스트 탭에는 자리표시자가 그대로 남아 있습니다.
소개
결제가 거절되면 보내세요. 금액과 카드를 밝히고, 흔한 원인을 차분하게 설명하며, 다음 시도가 언제인지 알리고, 결제 수단을 바꾸는 버튼 하나를 둡니다.
값
필수 값은 발송할 때마다 함께 보내야 합니다. 나머지는 여기 표시된 기본값을 씁니다.
| 자리표시자 | 종류 | 필수 | 기본값 |
|---|---|---|---|
{{productName}} | 텍스트 | 필수 | 없음 |
{{amount}} | 텍스트 | 필수 | 없음 |
{{cardLast4}} | 텍스트 | 선택 | •••• |
{{retryDate}} | 텍스트 | 필수 | 없음 |
{{consequence}} | 텍스트 | 선택 | If it fails again your plan pauses, and nothing is deleted. |
{{actionUrl}} | 링크 | 필수 | 없음 |
{{footerNote}} | 텍스트 | 선택 | You are receiving this because you have an active subscription. |
API
이 디자인으로 템플릿을 한 번 만들어 두고, 메시지마다 값을 넣어 보내세요.
import { init, openemail } from '@openemail/sdk' init({ apiKey: process.env.OPENEMAIL_API_KEY }) const template = await openemail.templates.create({ name: 'Payment failed', starter: 'payment-failed', publish: true,}) const sent = await openemail.templates.send(template.slug, { from: 'Northwind <[email protected]>', to: '[email protected]', props: { productName: 'Northwind', amount: '£49.00', cardLast4: '4242', retryDate: '4 October', actionUrl: 'https://example.com/billing', },}) console.log(sent.id, sent.status)주문 및 결제
기업, AI, 에이전트, 개인 메일을 위한 이메일 인프라. 규모와 프라이버시, 통제권을 위해 만들었습니다. 이메일이 처음부터 갖췄어야 할 모든 것.