Skip to content

Commit

Permalink
Merge pull request #344 from newfold-labs/fix-paypal-casing
Browse files Browse the repository at this point in the history
Fix incorrect Paypal casing to PayPal
  • Loading branch information
aratidgr8 authored Aug 21, 2024
2 parents 0f9babd + 4ce8442 commit 83aa07a
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '7d69441097d75b6b1a4e');
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '366fa6d2afb308a787a8');
8 changes: 4 additions & 4 deletions includes/Data/Brands.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static function get_config( Container $container ) {
'support' => 'https://www.crazydomains.in/contact',
'adminPage' => 'admin.php?page=crazy-domains',
'setup' => array(
'payment' => array( 'Paypal' ),
'payment' => array( 'PayPal' ),
'shipping' => array( 'Shippo' ),
),
'defaultContact' => array(
Expand All @@ -53,7 +53,7 @@ public static function get_config( Container $container ) {
'support' => 'https://helpchat.bluehost.in',
'adminPage' => 'admin.php?page=bluehost',
'setup' => array(
'payment' => array( 'Paypal', 'Razorpay', 'Stripe' ),
'payment' => array( 'PayPal', 'Razorpay', 'Stripe' ),
'shipping' => array(),
),
'defaultContact' => array(
Expand All @@ -72,7 +72,7 @@ public static function get_config( Container $container ) {
'support' => 'https://www.hostgator.com/contact',
'adminPage' => 'admin.php?page=hostgator',
'setup' => array(
'payment' => array( 'Paypal', 'Razorpay', 'Stripe' ),
'payment' => array( 'PayPal', 'Razorpay', 'Stripe' ),
'shipping' => array(),
),
'defaultContact' => array(
Expand All @@ -91,7 +91,7 @@ public static function get_config( Container $container ) {
'support' => 'https://www.bluehost.com/contact',
'adminPage' => 'admin.php?page=bluehost',
'setup' => array(
'payment' => array( 'Paypal', 'Razorpay', 'Stripe' ),
'payment' => array( 'PayPal', 'Razorpay', 'Stripe' ),
'shipping' => array( 'Shippo' ),
),
'defaultContact' => array(
Expand Down
2 changes: 1 addition & 1 deletion includes/ECommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ public function disable_creative_mail_banner() {
}

/**
* Activates yith payment plugins (Paypal, Stripe) when woocommerce is activated
* Activates yith payment plugins (PayPal, Stripe) when woocommerce is activated
*
* @param string $plugin Path to the plugin file relative
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
"When a customer selects a manual payment method, you'll need to approve their order before it can be fulfilled.": [
""
],
"Paypal": [
"PayPal": [
""
],
"Online payments built for success. We help you do business in 200+ markets and 100+ currencies\u2014even if your customers don't have PayPal.": [
Expand Down
2 changes: 1 addition & 1 deletion languages/wp-module-ecommerce-en_US.po
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ msgstr ""

#: build/index.js:8269
#: build/index.js:6786
msgid "Paypal"
msgid "PayPal"
msgstr ""

#: build/index.js:8270
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@
"When a customer selects a manual payment method, you'll need to approve their order before it can be fulfilled.": [
"Quando um cliente escolher um m\u00e9todo de pagamento manual, voc\u00ea precisar\u00e1 aprovar a compra para que ela seja efetivada."
],
"Paypal": [
"Paypal"
"PayPal": [
"PayPal"
],
"Online payments built for success. We help you do business in 200+ markets and 100+ currencies\u2014even if your customers don't have PayPal.": [
"Pagamentos online criados para o sucesso. Ajudamos voc\u00ea a fazer neg\u00f3cios em 200+ mercados e 100+ moedas."
Expand Down
4 changes: 2 additions & 2 deletions languages/wp-module-ecommerce-pt_BR.po
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ msgstr "Quando um cliente escolher um método de pagamento manual, você precisa

#: build/index.js:8269
#: build/index.js:6786
msgid "Paypal"
msgstr "Paypal"
msgid "PayPal"
msgstr "PayPal"

#: build/index.js:8270
#: build/index.js:6787
Expand Down
2 changes: 1 addition & 1 deletion languages/wp-module-ecommerce.pot
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ msgstr ""

#: build/index.js:8269
#: build/index.js:6786
msgid "Paypal"
msgid "PayPal"
msgstr ""

#: build/index.js:8270
Expand Down
4 changes: 2 additions & 2 deletions src/components/PayPalButton.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {useEffect, useRef} from '@wordpress/element';

const PaypalButton = () => {
const PayPalButton = () => {
const ppButton = useRef();

useEffect(() => {
Expand All @@ -18,4 +18,4 @@ const PaypalButton = () => {
);
};

export default PaypalButton;
export default PayPalButton;
6 changes: 3 additions & 3 deletions src/components/Payment.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { CheckboxGroup, Link } from "@newfold/ui-component-library";
import { RuntimeSdk } from "../sdk/runtime";
import Razorpay from "./Razorpay";
import { Section } from "./Section";
import Paypal from "./Paypal";
import PayPal from "./PaypalPayment";
import Stripe from "./Stripe";

const Payment = ({ notify, pushChanges, values, controls }) => {
Expand All @@ -12,9 +12,9 @@ const Payment = ({ notify, pushChanges, values, controls }) => {
}
return (
<Section.Container>
{RuntimeSdk.brandSettings.setup.payment.includes("Paypal") && (
{RuntimeSdk.brandSettings.setup.payment.includes("PayPal") && (
<Section.Content className="paypal-section" separator>
<Paypal notify={notify} />
<PayPal notify={notify} />
</Section.Content>
)}

Expand Down
10 changes: 5 additions & 5 deletions src/components/Paypal.js → src/components/PaypalPayment.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ import { ReactComponent as DiscoverBrand } from "../icons/brands/discover.svg";
import { ReactComponent as GiroPayBrand } from "../icons/brands/giropay.svg";
import { ReactComponent as IdealBrand } from "../icons/brands/ideal.svg";
import { ReactComponent as MasterCardBrand } from "../icons/brands/mastercard.svg";
import { ReactComponent as PaypalBrand } from "../icons/brands/paypal.svg";
import { ReactComponent as PayPalBrand } from "../icons/brands/paypal.svg";
import { ReactComponent as SofortBrand } from "../icons/brands/sofort.svg";
import { ReactComponent as VenmoBrand } from "../icons/brands/venmo.svg";
import { ReactComponent as VisaBrand } from "../icons/brands/visa.svg";
import { ThirdPartyIntegration } from "./ThirdPartyIntegration";
import PayPalButton from "./PayPalButton";

const Paypal = ({ notify }) => {
const PayPal = ({ notify }) => {

return (
<ThirdPartyIntegration
id="paypal"
title={__("Paypal", "wp-module-ecommerce")}
title={__("PayPal", "wp-module-ecommerce")}
description={__(
"Online payments built for success. We help you do business in 200+ markets and 100+ currencies—even if your customers don't have PayPal.",
"wp-module-ecommerce",
Expand All @@ -36,7 +36,7 @@ const Paypal = ({ notify }) => {
"min-[360px]:nfd-flex nfd-justify-between nfd-items-center min-[360px]:nfd-mb-8",
)}
>
<PaypalBrand />
<PayPalBrand />
{isInstalling ? (
<Button
variant="secondary"
Expand Down Expand Up @@ -132,4 +132,4 @@ const Paypal = ({ notify }) => {
</ThirdPartyIntegration>
);
};
export default Paypal;
export default PayPal;

0 comments on commit 83aa07a

Please sign in to comment.