Skip to content

Commit b926b46

Browse files
feat: adds risk-based APR US message types and content (#1240)
1 parent d1bffe7 commit b926b46

File tree

12 files changed

+202
-25
lines changed

12 files changed

+202
-25
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"meta": {
3+
"id": "d8dbfe8b-0bb8-44b1-ae07-6f32816fafe6",
4+
"offerCountry": "US",
5+
"offerType": "PAY_LATER_LONG_TERM",
6+
"messageType": "PLLT_MQ_EZ_RB",
7+
"offerTerm": "${CREDIT_OFFERS_DS.total_payments}",
8+
"lander": "https://www.paypal.com/ppclander",
9+
"variables": {
10+
"financing_code": "${CREDIT_OFFERS_DS.financing_code}",
11+
"formattedMonthlyPayment": "${CREDIT_OFFERS_DS.formattedMonthlyPayment}",
12+
"total_payments": "${CREDIT_OFFERS_DS.total_payments}",
13+
"minAmount": "${CREDIT_OFFERS_DS.minAmount}",
14+
"maxAmount": "${CREDIT_OFFERS_DS.maxAmount}",
15+
"formattedMinAmount": "${CREDIT_OFFERS_DS.formattedMinAmount}",
16+
"formattedMaxAmount": "${CREDIT_OFFERS_DS.formattedMaxAmount}",
17+
"formattedTotalCost": "${CREDIT_OFFERS_DS.formattedTotalCost}"
18+
}
19+
},
20+
"headline": [
21+
["Buy now, pay later.", ["default", "xsmall"]],
22+
["Buy now and pay later.", ["xsmall.2"]],
23+
[
24+
[
25+
"Starting at ${formattedMonthlyPayment}/<span aria-hidden='true'>mo</span><span class='sr-only'>month</span> or as low as 0% APR."
26+
],
27+
["small", "medium", "large", "xlarge"]
28+
]
29+
],
30+
"subHeadline": [],
31+
"disclaimer": [["<span aria-hidden='true'>Learn more</span><span class='sr-only'> Learn more</span>", ["default"]]]
32+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"meta": {
3+
"id": "d8dbfe8b-0bb8-44b1-ae07-6f32816fafe6",
4+
"offerCountry": "US",
5+
"offerType": "PAY_LATER_LONG_TERM",
6+
"messageType": "PLLT_SQ_EZ_RB",
7+
"offerTerm": "${CREDIT_OFFERS_DS.total_payments}",
8+
"lander": "https://www.paypal.com/ppclander",
9+
"variables": {
10+
"financing_code": "${CREDIT_OFFERS_DS.financing_code}",
11+
"formattedMonthlyPayment": "${CREDIT_OFFERS_DS.formattedMonthlyPayment}",
12+
"total_payments": "${CREDIT_OFFERS_DS.total_payments}",
13+
"minAmount": "${CREDIT_OFFERS_DS.minAmount}",
14+
"maxAmount": "${CREDIT_OFFERS_DS.maxAmount}",
15+
"formattedMinAmount": "${CREDIT_OFFERS_DS.formattedMinAmount}",
16+
"formattedMaxAmount": "${CREDIT_OFFERS_DS.formattedMaxAmount}",
17+
"formattedTotalCost": "${CREDIT_OFFERS_DS.formattedTotalCost}"
18+
}
19+
},
20+
"headline": [
21+
["Buy now, pay later.", ["default", "xsmall"]],
22+
["Buy now and pay later.", ["xsmall.2"]],
23+
[
24+
[
25+
"${total_payments} payments of ${formattedMonthlyPayment}/<span aria-hidden='true'>mo</span><span class='sr-only'>month</span> for as low as 0% APR."
26+
],
27+
["small", "medium", "large", "xlarge"]
28+
]
29+
],
30+
"subHeadline": [],
31+
"disclaimer": [["<span aria-hidden='true'>Learn more</span><span class='sr-only'> Learn more</span>", ["default"]]]
32+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"meta": {
3+
"id": "d8dbfe8b-0bb8-44b1-ae07-6f32816fafe6",
4+
"offerCountry": "US",
5+
"offerType": "PAY_LATER_LONG_TERM",
6+
"messageType": "PLLT_MQ_EZ_RB",
7+
"offerTerm": "${CREDIT_OFFERS_DS.total_payments}",
8+
"lander": "https://www.paypal.com/ppclander",
9+
"variables": {
10+
"financing_code": "${CREDIT_OFFERS_DS.financing_code}",
11+
"formattedMonthlyPayment": "${CREDIT_OFFERS_DS.formattedMonthlyPayment}",
12+
"total_payments": "${CREDIT_OFFERS_DS.total_payments}",
13+
"minAmount": "${CREDIT_OFFERS_DS.minAmount}",
14+
"maxAmount": "${CREDIT_OFFERS_DS.maxAmount}",
15+
"formattedMinAmount": "${CREDIT_OFFERS_DS.formattedMinAmount}",
16+
"formattedMaxAmount": "${CREDIT_OFFERS_DS.formattedMaxAmount}",
17+
"formattedTotalCost": "${CREDIT_OFFERS_DS.formattedTotalCost}"
18+
}
19+
},
20+
"headline": [
21+
["Buy now, pay later.", ["default", "xsmall"]],
22+
["Buy now and pay later.", ["xsmall.2"]],
23+
[
24+
[
25+
"Starting at ${formattedMonthlyPayment}/<span aria-hidden='true'>mo</span><span class='sr-only'>month</span> or as low as 0% APR."
26+
],
27+
["small", "medium", "large", "xlarge"]
28+
]
29+
],
30+
"subHeadline": [],
31+
"disclaimer": [["<span aria-hidden='true'>Learn more</span><span class='sr-only'> Learn more</span>", ["default"]]]
32+
}

content/messages/US/long_term_single_eqz_mixed.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"meta": {
33
"id": "d8dbfe8b-0bb8-44b1-ae07-6f32816fafe6",
44
"offerCountry": "US",
5-
"offerType": "LT_SQEZ_RB",
5+
"offerType": "PAY_LATER_LONG_TERM",
6+
"messageType": "PLLT_SQ_EZ_RB",
67
"offerTerm": "${CREDIT_OFFERS_DS.total_payments}",
78
"lander": "https://www.paypal.com/ppclander",
89
"variables": {
@@ -21,7 +22,7 @@
2122
["Buy now and pay later.", ["xsmall.2"]],
2223
[
2324
[
24-
"Make ${total_payments} payments of ${formattedMonthlyPayment}/<span aria-hidden='true'>mo</span><span class='sr-only'>month</span> or 0% APR."
25+
"${total_payments} payments of ${formattedMonthlyPayment}/<span aria-hidden='true'>mo</span><span class='sr-only'>month</span> for as low as 0% APR."
2526
],
2627
["small", "medium", "large", "xlarge"]
2728
]
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"meta": {
3+
"id": "d8dbfe8b-0bb8-44b1-ae07-6f32816fafe6",
4+
"offerCountry": "US",
5+
"offerType": "PAY_LATER_LONG_TERM",
6+
"messageType": "PLLT_MQ_EZ_RB",
7+
"offerTerm": "${CREDIT_OFFERS_DS.total_payments}",
8+
"lander": "https://www.paypal.com/ppclander",
9+
"variables": {
10+
"financing_code": "${CREDIT_OFFERS_DS.financing_code}",
11+
"formattedMonthlyPayment": "${CREDIT_OFFERS_DS.formattedMonthlyPayment}",
12+
"total_payments": "${CREDIT_OFFERS_DS.total_payments}",
13+
"minAmount": "${CREDIT_OFFERS_DS.minAmount}",
14+
"maxAmount": "${CREDIT_OFFERS_DS.maxAmount}",
15+
"formattedMinAmount": "${CREDIT_OFFERS_DS.formattedMinAmount}",
16+
"formattedMaxAmount": "${CREDIT_OFFERS_DS.formattedMaxAmount}",
17+
"formattedTotalCost": "${CREDIT_OFFERS_DS.formattedTotalCost}"
18+
}
19+
},
20+
"headline": [
21+
["Buy now, pay later.", ["default", "xsmall"]],
22+
["Buy now and pay later.", ["xsmall.2"]],
23+
[
24+
[
25+
"Starting at ${formattedMonthlyPayment}/<span aria-hidden='true'>mo</span><span class='sr-only'>month</span> or as low as 0% APR."
26+
],
27+
["small", "medium", "large", "xlarge"]
28+
]
29+
],
30+
"subHeadline": [],
31+
"disclaimer": [["<span aria-hidden='true'>Learn more</span><span class='sr-only'> Learn more</span>", ["default"]]]
32+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"meta": {
3+
"id": "d8dbfe8b-0bb8-44b1-ae07-6f32816fafe6",
4+
"offerCountry": "US",
5+
"offerType": "PAY_LATER_LONG_TERM",
6+
"messageType": "PLLT_SQ_EZ_RB",
7+
"offerTerm": "${CREDIT_OFFERS_DS.total_payments}",
8+
"lander": "https://www.paypal.com/ppclander",
9+
"variables": {
10+
"financing_code": "${CREDIT_OFFERS_DS.financing_code}",
11+
"formattedMonthlyPayment": "${CREDIT_OFFERS_DS.formattedMonthlyPayment}",
12+
"total_payments": "${CREDIT_OFFERS_DS.total_payments}",
13+
"minAmount": "${CREDIT_OFFERS_DS.minAmount}",
14+
"maxAmount": "${CREDIT_OFFERS_DS.maxAmount}",
15+
"formattedMinAmount": "${CREDIT_OFFERS_DS.formattedMinAmount}",
16+
"formattedMaxAmount": "${CREDIT_OFFERS_DS.formattedMaxAmount}",
17+
"formattedTotalCost": "${CREDIT_OFFERS_DS.formattedTotalCost}"
18+
}
19+
},
20+
"headline": [
21+
["Buy now, pay later.", ["default", "xsmall"]],
22+
["Buy now and pay later.", ["xsmall.2"]],
23+
[
24+
[
25+
"${total_payments} payments of ${formattedMonthlyPayment}/<span aria-hidden='true'>mo</span><span class='sr-only'>month</span> for as low as 0% APR."
26+
],
27+
["small", "medium", "large", "xlarge"]
28+
]
29+
],
30+
"subHeadline": [],
31+
"disclaimer": [["<span aria-hidden='true'>Learn more</span><span class='sr-only'> Learn more</span>", ["default"]]]
32+
}

docs/message-types.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,29 @@ The following are abbreviations used in reference to various messages and files.
66

77
### **US (United States)**
88

9-
| messageType | PStudio Name | File Name | Message |
10-
| --------------- | -------------------------------- | -------------------------- | ------------------------------------------------------------------------------- |
11-
| GENERIC | Generic Message | generic | Pay Later - No Amount Message |
12-
| PLST_SQ | Short Term - Q | short_term_q | Pay Later - Pay in 4, Qualifying Purchase |
13-
| PLST_NQ | Short Term - NQ | short_term_nq | Pay Later - Pay in 4, Non-Qualifying Purchase |
14-
| PLLT_MQ_EZ | Long Term - MQEZ | long_term_multi_eqz | Pay Later - Pay Monthly, Multiple Qualifying Offers = 0% APR |
15-
| PLLT_MQ_GZ | Long Term - MQGZ | long_term_multi_gtz | Pay Later - Pay Monthly, Multiple Qualifying Offers >0% APR |
16-
| PLLT_SQ_EZ | Long Term - SQEZ | long_term_single_eqz | Pay Later - Pay Monthly, Single Qualifying Offer = 0% APR |
17-
| PLLT_SQ_GZ | Long Term - SQGZ | long_term_single_gtz | Pay Later - Pay Monthly, Single Qualifying Offer >0% APR |
18-
| PLLT_NQ_EZ | Long Term - NQEZ | long_term_nq_eqz | Pay Later - Pay Monthly, Non-Qualifying Offers = 0% APR |
19-
| PLLT_NQ_GZ | Long Term - NQGZ | long_term_nq_gtz | Pay Later - Pay Monthly, Non-Qualifying Offers >0% APR |
20-
| PLLT_MQ_EZ_RB | **TBD** - _Not currently in use_ | long_term_multi_eqz_mixed | Pay Later - Pay Monthly, Multiple Qualifying Offers with risk-based pricing |
21-
| PLLT_SQ_EZ_RB | **TBD** - _Not currently in use_ | long_term_single_eqz_mixed | Pay Later - Pay Monthly, Single Qualifying Offers with risk-based pricing |
22-
| PPCNI_NQ | NI | ppc_ni_nq | PPC - No Interest, Non-Qualifying Purchase |
23-
| PPCNI_SQ | NIQ | ppc_nq_q | PPC - No Interest, Qualifying Purchase |
24-
| PPCNI_NQ_XB | NI NON-US | ppc_ni_nq_xb | No Interest, Non-US, Non-Qualifying Purchase |
25-
| PPCNI_SQ_XB | NIQ NON-US | ppc_ni_q_xb | No Interest, Non-US, Qualifying Purchase |
26-
| EZP:ANY:EQZ | Easy Payments - AEZ | ppc_ezp_nq_eqz | PPC - Easy Payments, Non-Qualifying with APR equal to zero |
27-
| EZP:ANY:GTZ | Easy Payments - AGZ | ppc_ezp_nq_gqz | PPC - Easy Payments, Non-Qualifying with APR greater than zero |
28-
| PALA:SINGLE:EQZ | Easy Payments - SEZP | ppc_ezp_single_eqz | PayPal Credit - Easy Payments (Pay As Low As), with APR equal to zero |
29-
| PALA:SINGLE:GTZ | Easy Payments - SGZP | ppc_ezp_single_gtz | PayPal Credit - Easy Payments (Pay As Low As), with APR greater than zero |
30-
| PALA:MULTI:EQZ | Easy Payments - MEZP | ppc_ezp_multi_eqz | PPC - Easy Payments (Pay As Low As), Multiple Offers with APR equal to zero |
31-
| PALA:MULTI:GTZ | Easy Payments - MGZP | ppc_ezp_multi_gtz | PPC - Easy Payments (Pay As Low As), Multiple Offers with APR greater than zero |
9+
| messageType | PStudio Name | File Name | Message |
10+
| --------------- | -------------------- | -------------------------- | ------------------------------------------------------------------------------- |
11+
| GENERIC | Generic Message | generic | Pay Later - No Amount Message |
12+
| PLST_SQ | Short Term - Q | short_term_q | Pay Later - Pay in 4, Qualifying Purchase |
13+
| PLST_NQ | Short Term - NQ | short_term_nq | Pay Later - Pay in 4, Non-Qualifying Purchase |
14+
| PLLT_MQ_EZ | Long Term - MQEZ | long_term_multi_eqz | Pay Later - Pay Monthly, Multiple Qualifying Offers = 0% APR |
15+
| PLLT_MQ_GZ | Long Term - MQGZ | long_term_multi_gtz | Pay Later - Pay Monthly, Multiple Qualifying Offers >0% APR |
16+
| PLLT_SQ_EZ | Long Term - SQEZ | long_term_single_eqz | Pay Later - Pay Monthly, Single Qualifying Offer = 0% APR |
17+
| PLLT_SQ_GZ | Long Term - SQGZ | long_term_single_gtz | Pay Later - Pay Monthly, Single Qualifying Offer >0% APR |
18+
| PLLT_NQ_EZ | Long Term - NQEZ | long_term_nq_eqz | Pay Later - Pay Monthly, Non-Qualifying Offers = 0% APR |
19+
| PLLT_NQ_GZ | Long Term - NQGZ | long_term_nq_gtz | Pay Later - Pay Monthly, Non-Qualifying Offers >0% APR |
20+
| PLLT_MQ_EZ_RB | Long Term - MQEZRB | long_term_multi_eqz_mixed | Pay Later - Pay Monthly, Multiple Qualifying Offers with risk-based pricing |
21+
| PLLT_SQ_EZ_RB | Long Term - SQEZRB | long_term_single_eqz_mixed | Pay Later - Pay Monthly, Single Qualifying Offers with risk-based pricing |
22+
| PPCNI_NQ | NI | ppc_ni_nq | PPC - No Interest, Non-Qualifying Purchase |
23+
| PPCNI_SQ | NIQ | ppc_nq_q | PPC - No Interest, Qualifying Purchase |
24+
| PPCNI_NQ_XB | NI NON-US | ppc_ni_nq_xb | No Interest, Non-US, Non-Qualifying Purchase |
25+
| PPCNI_SQ_XB | NIQ NON-US | ppc_ni_q_xb | No Interest, Non-US, Qualifying Purchase |
26+
| EZP:ANY:EQZ | Easy Payments - AEZ | ppc_ezp_nq_eqz | PPC - Easy Payments, Non-Qualifying with APR equal to zero |
27+
| EZP:ANY:GTZ | Easy Payments - AGZ | ppc_ezp_nq_gqz | PPC - Easy Payments, Non-Qualifying with APR greater than zero |
28+
| PALA:SINGLE:EQZ | Easy Payments - SEZP | ppc_ezp_single_eqz | PayPal Credit - Easy Payments (Pay As Low As), with APR equal to zero |
29+
| PALA:SINGLE:GTZ | Easy Payments - SGZP | ppc_ezp_single_gtz | PayPal Credit - Easy Payments (Pay As Low As), with APR greater than zero |
30+
| PALA:MULTI:EQZ | Easy Payments - MEZP | ppc_ezp_multi_eqz | PPC - Easy Payments (Pay As Low As), Multiple Offers with APR equal to zero |
31+
| PALA:MULTI:GTZ | Easy Payments - MGZP | ppc_ezp_multi_gtz | PPC - Easy Payments (Pay As Low As), Multiple Offers with APR greater than zero |
3232

3333
**Note:**
3434

src/server/locale/US/CONTEXTUAL_COMPONENTS/BUTTONS/mutations/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default function getMutations(id, type) {
2727
// Long Term multiple qualifying offers at 0% APR
2828
case 'LT_MQEZ':
2929
case 'PLLT_MQ_EZ':
30+
case 'PLLT_MQ_EZ_RB':
3031
return longTermMultiEQZ[type];
3132
// Long Term multiple qualifying offers non-0% APR
3233
case 'LT_MQGZ':
@@ -35,6 +36,7 @@ export default function getMutations(id, type) {
3536
// Long Term single qualifying offer at 0% APR
3637
case 'LT_SQEZ':
3738
case 'PLLT_SQ_EZ':
39+
case 'PLLT_SQ_EZ_RB':
3840
return longTermSingleEQZ[type];
3941
// Long Term single qualifying offer non-0% APR
4042
case 'LT_SQGZ':

src/server/locale/US/CONTEXTUAL_COMPONENTS/MARKS/mutations/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default function getMutations(id, type) {
2727
// Long Term multiple qualifying offers at 0% APR
2828
case 'LT_MQEZ':
2929
case 'PLLT_MQ_EZ':
30+
case 'PLLT_MQ_EZ_RB':
3031
return longTermMultiEQZ[type];
3132
// Long Term multiple qualifying offers non-0% APR
3233
case 'LT_MQGZ':
@@ -35,6 +36,7 @@ export default function getMutations(id, type) {
3536
// Long Term single qualifying offer at 0% APR
3637
case 'LT_SQEZ':
3738
case 'PLLT_SQ_EZ':
39+
case 'PLLT_SQ_EZ_RB':
3840
return longTermSingleEQZ[type];
3941
// Long Term single qualifying offer non-0% APR
4042
case 'LT_SQGZ':

src/server/locale/US/PAY_LATER_LONG_TERM/mutations/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default function getMutations(id, type) {
1919
return longTermNQGTZ[type];
2020
case 'LT_MQEZ':
2121
case 'PLLT_MQ_EZ':
22+
case 'PLLT_MQ_EZ_RB':
2223
return longTermMultiEQZ[type];
2324
case 'LT_MQGZ':
2425
case 'PLLT_MQ_GZ':
@@ -28,6 +29,7 @@ export default function getMutations(id, type) {
2829
return longTermMultiGTZ3MEZ[type];
2930
case 'LT_SQEZ':
3031
case 'PLLT_SQ_EZ':
32+
case 'PLLT_SQ_EZ_RB':
3133
return longTermSingleEQZ[type];
3234
case 'LT_SQGZ':
3335
case 'PLLT_SQ_GZ':

0 commit comments

Comments
 (0)