-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: draft instant payment * feat: closing active payment methods + ui fixes * feat: increased specificity apple pay appearence * fix: apple pay specificity * fix: clean up * feat: test for uielement * feat: translations
- Loading branch information
1 parent
3400496
commit 3db67ba
Showing
53 changed files
with
319 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/lib/src/components/ApplePay/components/ApplePayButton.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
packages/lib/src/components/Dropin/components/PaymentMethod/InstantPaymentMethods.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Fragment, h } from 'preact'; | ||
import ContentSeparator from '../../../internal/ContentSeparator'; | ||
import useCoreContext from '../../../../core/Context/useCoreContext'; | ||
import UIElement from '../../../UIElement'; | ||
|
||
interface InstantPaymentMethodsProps { | ||
paymentMethods: UIElement[]; | ||
} | ||
|
||
function InstantPaymentMethods({ paymentMethods }: InstantPaymentMethodsProps) { | ||
const { i18n } = useCoreContext(); | ||
|
||
return ( | ||
<Fragment> | ||
<ul className="adyen-checkout__instant-payment-methods-list"> | ||
{paymentMethods.map(pm => ( | ||
<li key={pm.type}>{pm.render()}</li> | ||
))} | ||
</ul> | ||
<ContentSeparator label={i18n.get('orPayWith')} /> | ||
</Fragment> | ||
); | ||
} | ||
|
||
export default InstantPaymentMethods; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.