This commit is contained in:
Sam Seay 2021-06-03 09:08:11 +12:00 committed by GitHub
parent b4c71ae644
commit 4ca5a4e226
5 changed files with 35 additions and 34 deletions

View File

@ -1,32 +0,0 @@
export const MollieLogo = () => {
return (
<svg
fill="none"
viewBox="0 0 677 200"
width="100"
xmlns="http://www.w3.org/2000/svg"
>
<g fill="#000">
<path
clipRule="evenodd"
d="m286.342 65.3132c-37.175 0-67.35 30.2415-67.35 67.3438 0 37.101 30.245 67.343 67.35 67.343 37.106 0 67.35-30.242 67.35-67.343 0-37.1023-30.174-67.3438-67.35-67.3438zm0 102.8348c-19.533 0-35.425-15.89-35.425-35.421s15.892-35.4222 35.425-35.4222 35.426 15.8912 35.426 35.4222-15.893 35.421-35.426 35.421z"
fillRule="evenodd"
/>
<path d="m510.375 42.0021c11.6 0 21.003-9.4025 21.003-21.0011 0-11.59851-9.403-21.001-21.003-21.001-11.599 0-21.003 9.40249-21.003 21.001 0 11.5986 9.404 21.0011 21.003 21.0011z" />
<path
clipRule="evenodd"
d="m148.842 65.3833c-1.75-.14-3.431-.21-5.181-.21-16.242 0-31.644 6.6503-42.706 18.4109-11.0617-11.6906-26.394-18.4109-42.4964-18.4109-32.2047 0-58.4586 26.1813-58.4586 58.3827v73.714h31.5047v-72.804c0-13.37 10.9916-25.691 23.9435-27.0211.9101-.07 1.8203-.14 2.6604-.14 14.5621 0 26.4639 11.9001 26.5339 26.4611v73.504h32.2045v-72.944c0-13.3 10.922-25.621 23.944-26.9511.91-.07 1.82-.14 2.66-.14 14.562 0 26.534 11.8301 26.604 26.3211v73.714h32.205v-72.804c0-14.77-5.461-28.9812-15.332-39.9717-9.872-11.0606-23.384-17.8509-38.086-19.111z"
fillRule="evenodd"
/>
<path d="m403.26 3.15015h-32.205v194.25985h32.205z" />
<path d="m464.869 3.15015h-32.205v194.25985h32.205z" />
<path d="m526.478 68.5334h-32.205v128.8066h32.205z" />
<path
clipRule="evenodd"
d="m677 129.646c0-17.08-6.651-33.1812-18.693-45.4318-12.112-12.2506-28.074-19.0409-45.086-19.0409-.28 0-.561 0-.841 0-17.642.21-34.305 7.2103-46.766 19.741-12.462 12.5306-19.463 29.1217-19.673 46.8327-.21 18.06 6.721 35.141 19.533 48.092 12.811 12.951 29.754 20.091 47.817 20.091h.07c23.663 0 45.856-12.671 57.968-33.042l1.54-2.59-26.604-13.09-1.33 2.17c-6.651 10.99-18.202 17.501-31.014 17.501-16.383 0-30.525-10.921-34.866-26.462h97.945zm-65.04-35.2113c14.703 0 27.864 9.6603 32.485 23.3813h-64.899c4.55-13.721 17.712-23.3813 32.414-23.3813z"
fillRule="evenodd"
/>
</g>
</svg>
);
};

View File

@ -16,7 +16,6 @@ import BacsLogo from '../images/bacs';
import CodLogo from '../images/cod';
import WCPayLogo from '../images/wcpay';
import RazorpayLogo from '../images/razorpay';
import { MollieLogo } from '../images/mollie';
import { PayUIndiaLogo } from '../images/payu-india';
import Stripe from './stripe';
import Square from './square';
@ -342,7 +341,15 @@ export function getPaymentMethods( {
{
key: 'mollie',
title: __( 'Mollie Payments for WooCommerce', 'woocommerce-admin' ),
before: <MollieLogo />,
before: (
<img
src={ wcAdminAssetUrl + '/onboarding/mollie.svg' }
alt={ __(
'Mollie Payments for WooCommerce logo',
'woocommerce-admin'
) }
/>
),
plugins: [ 'mollie-payments-for-woocommerce' ],
isConfigured: activePlugins.includes(
'mollie-payments-for-woocommerce'

View File

@ -0,0 +1 @@
<svg fill="none" viewBox="0 0 677 200" height="30" width="100" xmlns="http://www.w3.org/2000/svg"><g fill="#000"><path d="M286.342 65.313c-37.175 0-67.35 30.242-67.35 67.344 0 37.101 30.245 67.343 67.35 67.343 37.106 0 67.35-30.242 67.35-67.343 0-37.102-30.174-67.344-67.35-67.344zm0 102.835c-19.533 0-35.425-15.89-35.425-35.421s15.892-35.422 35.425-35.422 35.426 15.891 35.426 35.422-15.893 35.421-35.426 35.421z" fill-rule="evenodd"/><path d="M510.375 42.002c11.6 0 21.003-9.402 21.003-21.001C531.378 9.402 521.975 0 510.375 0c-11.599 0-21.003 9.402-21.003 21.001 0 11.599 9.404 21.001 21.003 21.001z"/><path d="M148.842 65.383c-1.75-.14-3.431-.21-5.181-.21-16.242 0-31.644 6.65-42.706 18.411-11.062-11.69-26.394-18.41-42.496-18.41C26.254 65.173 0 91.353 0 123.555v73.714h31.505v-72.804c0-13.37 10.991-25.691 23.943-27.021.91-.07 1.82-.14 2.66-.14 14.563 0 26.465 11.9 26.535 26.461v73.504h32.204v-72.944c0-13.3 10.922-25.621 23.944-26.951.91-.07 1.82-.14 2.66-.14 14.562 0 26.534 11.83 26.604 26.321v73.714h32.205v-72.804a59.782 59.782 0 00-15.332-39.972c-9.872-11.06-23.384-17.85-38.086-19.11z" fill-rule="evenodd"/><path d="M403.26 3.15h-32.205v194.26h32.205zM464.869 3.15h-32.205v194.26h32.205zM526.478 68.533h-32.205V197.34h32.205z"/><path d="M677 129.646c0-17.08-6.651-33.181-18.693-45.432-12.112-12.25-28.074-19.04-45.086-19.04h-.841c-17.642.21-34.305 7.21-46.766 19.74-12.462 12.53-19.463 29.122-19.673 46.833-.21 18.06 6.721 35.141 19.533 48.092 12.811 12.951 29.754 20.091 47.817 20.091h.07c23.663 0 45.856-12.671 57.968-33.042l1.54-2.59-26.604-13.09-1.33 2.17c-6.651 10.99-18.202 17.501-31.014 17.501-16.383 0-30.525-10.921-34.866-26.462H677zm-65.04-35.211c14.703 0 27.864 9.66 32.485 23.381h-64.899c4.55-13.721 17.712-23.381 32.414-23.381z" fill-rule="evenodd"/></g></svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -138,6 +138,7 @@ Release and roadmap notes are available on the [WooCommerce Developers Blog](htt
- Dev: Remove react-docgen docs in favor of Storybook #7055
- Update: Hook up payments gateway data store #7038
- Update: Update remote payment docs gateway methods #7079
- Add: Add Mollie to the default payment gateways. #7092
== 2.3.1 5/24/2021 ==
- Tweak: Store profiler - Changed MailPoet's title and description #6990

View File

@ -58,6 +58,30 @@ class DefaultPaymentGateways {
self::get_rules_for_cbd( false ),
),
),
array(
'key' => 'mollie_wc_gateway_banktransfer',
'title' => __( 'Mollie', 'woocommerce-admin' ),
'content' => __( 'Effortless payments by Mollie: Offer global and local payment methods, get onboarded in minutes, and supported in your language.', 'woocommerce-admin' ),
'image' => plugins_url( 'images/onboarding/mollie.svg', WC_ADMIN_PLUGIN_FILE ),
'plugins' => array( 'mollie-payments-for-woocommerce' ),
'is_visible' => array(
self::get_rules_for_countries(
array(
'FR',
'DE',
'GB',
'AT',
'CH',
'ES',
'IT',
'PL',
'FI',
'NL',
'BE',
)
),
),
),
array(
'key' => 'woo-mercado-pago-custom',
'title' => __( 'Mercado Pago Checkout Pro & Custom', 'woocommerce-admin' ),