Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions content/messages/AU/gpl.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
"headline": [
["Buy now, pay later.", ["default", "xsmall"]],
["Buy now and pay later.", ["xsmall.2"]],
[
"Pay in 4 interest-free payments on purchases of {formattedMinAmount}-{formattedMaxAmount}",
["medium", "large", "xlarge"]
]
["Pay in 4 interest-free payments on purchases under $2,000", ["medium", "large", "xlarge"]]
],

"subHeadline": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"meta": {
"id": "d8dbfe8b-0bb8-44b1-ae07-6f32816fafe6",
"offerCountry": "US",
"offerType": "LT_MQEZ_RB",
"offerType": "LT_MQGZ:3MEZ",
"offerTerm": "${CREDIT_OFFERS_DS.total_payments}",
"lander": "https://www.paypal.com/ppclander",
"variables": {
Expand Down
34 changes: 26 additions & 8 deletions content/modals/AU/short_term.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"content": {
"headline": "Pay in 4 interest-free payments",
"subheadline": "Available for purchases of {formattedMinAmount} to {formattedMaxAmount}. No sign-up fees or late fees.",
"subheadline": "Available for purchases under $2,000.00. No sign-up fees or late fees.",
"qualifyingSubheadline": "Split your purchase of {formattedTotalCost} into {total_payments} with no sign-up fees or late fees.",
"donutTimestamps": ["Today", "2 weeks", "4 weeks", "6 weeks"],
"estimatedInstallments": {
Expand All @@ -43,19 +43,37 @@
"Remaining payments are taken automatically. It’s easy!"
],
"disclosure": [
"PayPal Pay in 4 is for eligible purchases between {formattedMinAmount}–{formattedMaxAmount} AUD. It’s available to Australian residents with an Australian PayPal account. Eligibility is subject to your PayPal account status and a credit assessment, which may require a credit check. Pay in 4 is a continuing credit contract offered under the",
"PayPal Pay in 4 is a continuing credit contract provided by PayPal Credit Pty Limited (ABN 66 600 629 258) to Australian residents and is subject to eligibility criteria, credit application and suitability assessment. PayPal Pay in 4 is available on eligible transactions under $2,000.00 AUD and application and use may impact a customer's credit score. Please read and consider the",
[
"PayPal Pay in 4 Facility Agreement ",
"https://www.paypal.com/au/webapps/mpp/paypal-payin4/terms",
"PayPal Credit Guide ",
"https://www.paypalobjects.com/marketing/ua/pdf/AU/en/pp-credit-guide-052125.pdf",
"PayPal Credit Guide, opens new tab"
],
"before entering into the PayPal Pay in 4 Facility Agreement. Please see the",
[
"PayPal Pay in 4 Facility Agreement",
"https://www.paypal.com/au/webapps/mpp/ua/pay-in-4-facility?locale.x=en_AU",
"PayPal Pay in 4 Facility Agreement, opens new tab"
],
"that may allow you up to $2,000.00 in credit for eligible purchases, so consider whether you can afford the repayments as use of the product may impact your credit score. Please read the",
"for full details and for more information about how PayPal handles your personal information, please refer to our",
[
"Privacy Statement",
"https://www.paypal.com/au/legalhub/paypal/privacy-full",
"Privacy Statement, opens new tab"
],
". PayPal may disclose your personal information to a credit reporting body. To find out more about our credit reporting practices, please see our",
[
"Statement of Notifiable Matters",
"https://www.paypal.com/au/legalhub/paypal/credit-reporting?locale.x=en_AU",
"Statement of Notifiable Matters, opens new tab"
],
". To view the Target Market Determination for this product, see",
[
"TMD ",
"https://www.paypalobjects.com/marketing/ua/pdf/AU/en/tmd-pp-pay-in-4-100124.pdf",
"here",
"https://www.paypalobjects.com/marketing/ua/pdf/AU/en/pay-in-4-rmd-052125.pdf",
"TMD, opens new tab"
],
"before deciding to use PayPal Pay in 4."
"."
],
"linkToProductList": "See other ways to pay later"
}
Expand Down
4 changes: 4 additions & 0 deletions src/server/locale/US/PAY_LATER_LONG_TERM/mutations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import longTermNQEQZ from './long_term_nq_eqz';
import longTermNQGTZ from './long_term_nq_gtz';
import longTermMultiEQZ from './long_term_multi_eqz';
import longTermMultiGTZ3MEZ from './long_term_multi_gtz_3mez';
import longTermMultiGTZ from './long_term_multi_gtz';
import longTermSingleEQZ from './long_term_single_eqz';
import longTermSingleGTZ from './long_term_single_gtz';
Expand All @@ -22,6 +23,9 @@ export default function getMutations(id, type) {
case 'LT_MQGZ':
case 'PLLT_MQ_GZ':
return longTermMultiGTZ[type];
case 'LT_MQGZ:3MEZ':
case 'PLLT_MQGZ:3MEZ':
return longTermMultiGTZ3MEZ[type];
case 'LT_SQEZ':
case 'PLLT_SQ_EZ':
return longTermSingleEQZ[type];
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
import Logo from '../../../../message/logos';
import {
textWrap,
messageLogoWidth,
altNoWrap,
setLogoTop,
logo20x1,
xSmallFallback
} from '../../../../message/mediaQueries';
import { flexLogoMutations, textLogoMutations } from '../../../../message/logoMutations';

const flex = [
[
'default',
{
logo: Logo.PP_PAYPAL.WHITE,
headline: [
{
tag: 'xsmall'
},
{
tag: 'medium'
}
],
disclaimer: ['default'],
styles: []
}
],
[
'ratio:20x1',
{
styles: [logo20x1()]
}
],
[
'ratio:8x1',
{
headline: [
{
tag: 'xsmall'
},
{
tag: 'medium'
}
]
}
],
['color:white-no-border', { logo: Logo.PP_PAYPAL.COLOR }],
...flexLogoMutations
];

export default {
'layout:flex': flex,
'layout:text': [
[
'default',
({ textSize }) => ({
styles: [
`@media screen and (max-width: ${textSize * 18.5}px) {
.message__headline > .tag--medium > span.br:first-child { white-space: normal; }
}`,
textWrap(textSize * 32, textSize, 'US'),
xSmallFallback(textSize * 16),
messageLogoWidth(false, textSize * 4, textSize * 1.25),
setLogoTop(textSize * 16)
],
logo: Logo.PP_PAYPAL.COLOR,
headline: [
{
tag: 'medium',
br: ['mo.']
},
{
tag: 'xsmall'
}
],
disclaimer: ['default']
})
],
[
'logo.type:primary && logo.position:right',
({ textSize }) => ({
styles: [
`@media screen and (max-width: ${textSize * 18.5}px) {
.message__headline > .tag--medium { white-space: normal; }
}`,
xSmallFallback(textSize * 10.75),
setLogoTop(textSize * 28.75),
messageLogoWidth(textSize * 6, textSize * 4, textSize * 1.25)
]
})
],
[
'logo.type:primary && logo.position:top',
({ textSize }) => ({
styles: [
`@media screen and (max-width: ${textSize * 18.5}px) {
.message__headline > .tag--medium { white-space: normal; }
}`,
xSmallFallback(textSize * 10.75),
messageLogoWidth(textSize * 6, textSize * 4, textSize * 1.25)
]
})
],
[
'logo.type:alternative',
({ textSize }) => ({
styles: [
`@media screen and (max-width: ${textSize * 10.6}px) { .message__content { white-space: nowrap; }}`,
xSmallFallback(textSize * 11.5),
altNoWrap(textSize * 10.6),
textWrap(textSize * 32, textSize, 'US'),
messageLogoWidth(textSize * 1.75, textSize * 4, textSize * 1.25)
],
logo: Logo.PP_PAYPAL.COLOR[0]
})
],
[
'logo.type:none',
({ textSize }) => ({
styles: [xSmallFallback(textSize * 16)],
logo: false,
headline: [
{
tag: 'medium',
br: ['mo.', 'mo'],
replace: [
['APR.', 'APR'],
['mo.', 'mo']
]
},
{
tag: 'xsmall.2',
replace: [['later.', 'later']]
}
]
})
],
[
'logo.type:inline',
({ textSize }) => ({
styles: [xSmallFallback(textSize * 16), `.message__logo { width: ${textSize * 4}px }`],
logo: Logo.NO_PP_MONOGRAM.COLOR,
headline: [
{
tag: 'medium',
br: ['mo.', 'mo'],
replace: [
['APR.', 'APR'],
['mo.', 'mo']
]
},
{
tag: 'xsmall.2',
replace: [['later.', 'later']]
}
]
})
],
...textLogoMutations
]
};
2 changes: 2 additions & 0 deletions src/utils/miscellaneous.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ export function getStandardProductOffer(offer) {
case 'LT_MQEZ':
case 'LT_MQEZ_RB':
case 'LT_MQGZ':
case 'LT_MQGZ:3MEZ':
case 'LT_SQEZ':
case 'LT_SQEZ_RB':
case 'LT_SQGZ':
Expand All @@ -230,6 +231,7 @@ export function getStandardProductOffer(offer) {
case 'PLLT_NQ_GZ':
case 'PLLT_MQ_EZ':
case 'PLLT_MQ_GZ':
case 'PLLT_MQ_GZ:3MEZ':
case 'PLLT_SQ_EZ':
case 'PLLT_SQ_GZ':
case OFFER.PAY_LATER_LONG_TERM:
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions tests/functional/v2/config/AU/DEV_AU_SHORT_TERM.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ export const DEV_AU_SHORT_TERM = {
testFileName: 'shortTerm',
country: 'AU',
description: 'AU merchant eligible for short term only',
minAmount: 30,
maxAmount: 1500,
minAmount: 1,
maxAmount: 1999.99,
amounts: [
{
value: '0.00',
message: 'Non-qualifying Pay in 4',
expectedValue: 'Pay in 4 interest-free payments',
modalContent: {
subheadline: 'Available for purchases of $30 to $1,500. No sign-up fees or late fees.',
subheadline: 'Available for purchases under $2,000. No sign-up fees or late fees.',
periodicPayment: null
}
},
Expand All @@ -24,11 +24,11 @@ export const DEV_AU_SHORT_TERM = {
}
},
{
value: '1500.01',
value: '2000.00',
message: 'Non-qualifying Pay in 4',
expectedValue: 'Pay in 4 interest-free payments',
modalContent: {
subheadline: 'Available for purchases of $30 to $1,500. No sign-up fees or late fees.',
subheadline: 'Available for purchases under $2,000. No sign-up fees or late fees.',
periodicPayment: ''
}
}
Expand Down
10 changes: 5 additions & 5 deletions utils/devServerProxy/config/AU/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ export default {
],
messageThresholds: [
{
amount: 0,
amount: 1999.99,
template: 'gpl.json',
product: 'PAY_LATER_SHORT_TERM'
},
{
amount: 30,
amount: 0.99,
template: 'gplq.json',
product: 'PAY_LATER_SHORT_TERM'
},
{
amount: 1500.01,
amount: 0,
template: 'gpl.json',
product: 'PAY_LATER_SHORT_TERM'
}
Expand All @@ -30,8 +30,8 @@ export default {
totalPayments: 4,
apr: 0,
nominalRate: 0,
minAmount: 30,
maxAmount: 1500
minAmount: 1,
maxAmount: 1999.99
}
]
}
Expand Down
Loading