mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-17 06:52:27 +01:00
integrate payzen logo and other fixes
This commit is contained in:
parent
d70d0dcf7a
commit
fb2abcc382
Binary file not shown.
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 13 KiB |
@ -165,14 +165,14 @@ export const PaymentModal: React.FC<PaymentModalProps> = ({ isOpen, toggleModal,
|
||||
width={ModalSize.medium}
|
||||
closeButton={false}
|
||||
customFooter={logoFooter}
|
||||
className={`payment-modal ${className}`}>
|
||||
className={`payment-modal ${className ? className : ''}`}>
|
||||
{ready && <div>
|
||||
<WalletInfo cartItems={cartItems} currentUser={currentUser} wallet={wallet} price={price?.price} />
|
||||
<GatewayForm onSubmit={handleSubmit}
|
||||
onSuccess={handleFormSuccess}
|
||||
onError={handleFormError}
|
||||
operator={currentUser}
|
||||
className={`gateway-form ${formClassName}`}
|
||||
className={`gateway-form ${formClassName ? formClassName : ''}`}
|
||||
formId={formId}
|
||||
cartItems={cartItems}
|
||||
customer={customer}
|
||||
|
@ -1,6 +1,5 @@
|
||||
import React, { FunctionComponent, ReactNode } from 'react';
|
||||
import { react2angular } from 'react2angular';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Loader } from '../base/loader';
|
||||
import { IApplication } from '../../models/application';
|
||||
import { CartItems, PaymentConfirmation } from '../../models/payment';
|
||||
@ -35,7 +34,6 @@ const PayZenModal: React.FC<PayZenModalProps> = ({ isOpen, toggleModal, afterSuc
|
||||
const logoFooter = (): ReactNode => {
|
||||
return (
|
||||
<div className="payzen-modal-icons">
|
||||
<i className="fa fa-lock fa-2x m-r-sm pos-rlt" />
|
||||
<img src={payzenLogo} alt="powered by PayZen" />
|
||||
<img src={mastercardLogo} alt="mastercard" />
|
||||
<img src={visaLogo} alt="visa" />
|
||||
@ -62,7 +60,9 @@ const PayZenModal: React.FC<PayZenModalProps> = ({ isOpen, toggleModal, afterSuc
|
||||
<PaymentModal isOpen={isOpen}
|
||||
toggleModal={toggleModal}
|
||||
logoFooter={logoFooter()}
|
||||
formId="payzen-modal"
|
||||
formId="payzen-form"
|
||||
formClassName="payzen-form"
|
||||
className="payzen-modal"
|
||||
currentUser={currentUser}
|
||||
cartItems={cartItems}
|
||||
customer={customer}
|
||||
@ -80,4 +80,4 @@ const PayZenModalWrapper: React.FC<PayZenModalProps> = ({ isOpen, toggleModal, a
|
||||
);
|
||||
}
|
||||
|
||||
Application.Components.component('payZenModal', react2angular(PayZenModalWrapper, ['isOpen', 'toggleModal', 'afterSuccess','currentUser', 'schedule', 'cartItems', 'customer']));
|
||||
Application.Components.component('payzenModal', react2angular(PayZenModalWrapper, ['isOpen', 'toggleModal', 'afterSuccess','currentUser', 'schedule', 'cartItems', 'customer']));
|
||||
|
@ -39,5 +39,6 @@
|
||||
@import "modules/payzen-keys-form";
|
||||
@import "modules/payzen-settings";
|
||||
@import "modules/payment-modal";
|
||||
@import "modules/payzen-modal";
|
||||
|
||||
@import "app.responsive";
|
||||
|
9
app/frontend/src/stylesheets/modules/payzen-modal.scss
Normal file
9
app/frontend/src/stylesheets/modules/payzen-modal.scss
Normal file
@ -0,0 +1,9 @@
|
||||
.payzen-modal {
|
||||
.payzen-modal-icons {
|
||||
text-align: center;
|
||||
|
||||
img {
|
||||
margin-right: 10px;
|
||||
}
|
||||
}
|
||||
}
|
@ -200,7 +200,7 @@
|
||||
|
||||
</div>
|
||||
<div ng-if="stripe.showModal">
|
||||
<stripe-modal is-open="stripe.showModal"
|
||||
<payzen-modal is-open="stripe.showModal"
|
||||
toggle-modal="toggleStripeModal"
|
||||
after-success="afterStripeSuccess"
|
||||
cart-items="stripe.cartItems"
|
||||
|
@ -7,6 +7,7 @@ module PayZen; end
|
||||
class PayZen::Helper
|
||||
class << self
|
||||
def enabled?
|
||||
return false unless Setting.get('online_payment_module')
|
||||
return false unless Setting.get('payment_gateway') == 'payzen'
|
||||
|
||||
res = true
|
||||
|
Loading…
x
Reference in New Issue
Block a user