-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from Adyen/feature/AD-333
AD-333 Create CMS Components for Express Payment Methods Placeholder …
- Loading branch information
Showing
13 changed files
with
145 additions
and
20 deletions.
There are no files selected for viewing
34 changes: 19 additions & 15 deletions
34
projects/adyen-payments/import/adyen-payment-details.impex
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 |
---|---|---|
@@ -1,20 +1,24 @@ | ||
$contentCatalog=electronics-spaContentCatalog | ||
$contentCV=catalogVersion(CatalogVersion.catalog(Catalog.id[default=$contentCatalog]),CatalogVersion.version[default=Staged])[default=$contentCatalog:Staged] | ||
$contentCatalog = electronics-spaContentCatalog | ||
$contentCV = catalogVersion(CatalogVersion.catalog(Catalog.id[default = $contentCatalog]), CatalogVersion.version[default = Staged])[default = $contentCatalog:Staged] | ||
|
||
INSERT_UPDATE ContentPage;$contentCV[unique=true];uid[unique=true];name;masterTemplate(uid,$contentCV);label;defaultPage[default='true'];approvalStatus(code)[default='approved'];homepage[default='false'] | ||
;;CheckoutAdyenPaymentDetails;Checkout Adyen Payment Details Page;MultiStepCheckoutSummaryPageTemplate;/checkout/adyen-payment-details | ||
INSERT_UPDATE ContentPage; $contentCV[unique = true]; uid[unique = true] ; name ; masterTemplate(uid, $contentCV) ; label; defaultPage[default = 'true']; approvalStatus(code)[default = 'approved']; homepage[default = 'false'] | ||
; ; CheckoutAdyenPaymentDetails ; Checkout Adyen Payment Details Page ; MultiStepCheckoutSummaryPageTemplate ; /checkout/adyen-payment-details | ||
|
||
INSERT_UPDATE ContentSlot;$contentCV[unique=true];uid[unique=true];name;cmsComponents(uid, $contentCV) | ||
;;BodyContentSlot-CheckoutAdyenPaymentDetails;Checkout Payment Details Slot;CheckoutProgressComponent,CheckoutProgressMobileTopComponent,CheckoutAdyenPaymentDetailsComponent,CheckoutProgressMobileBottomComponent | ||
;;SideContentSlot-CheckoutAdyenPaymentDetails;Order Summary Slot;CheckoutOrderSummaryComponent | ||
INSERT_UPDATE ContentSlot; $contentCV[unique = true]; uid[unique = true] ; name ; cmsComponents(uid, $contentCV) | ||
; ; BodyContentSlot-CheckoutAdyenPaymentDetails ; Checkout Payment Details Slot ; CheckoutProgressComponent,CheckoutProgressMobileTopComponent,CheckoutAdyenPaymentDetailsComponent,CheckoutProgressMobileBottomComponent | ||
; ; SideContentSlot-CheckoutAdyenPaymentDetails ; Order Summary Slot ; CheckoutOrderSummaryComponent | ||
|
||
INSERT_UPDATE ContentSlotForPage;$contentCV[unique=true];uid[unique=true];position[unique=true];page(uid,$contentCV)[unique=true];contentSlot(uid,$contentCV)[unique=true] | ||
;;BodyContent-CheckoutAdyenPaymentDetails;BodyContent;CheckoutAdyenPaymentDetails;BodyContentSlot-CheckoutAdyenPaymentDetails | ||
;;SideContent-CheckoutAdyenPaymentDetails;SideContent;CheckoutAdyenPaymentDetails;SideContentSlot-CheckoutAdyenPaymentDetails | ||
INSERT_UPDATE ContentSlotForPage; $contentCV[unique = true]; uid[unique = true] ; position[unique = true]; page(uid, $contentCV)[unique = true]; contentSlot(uid, $contentCV)[unique = true] | ||
; ; BodyContent-CheckoutAdyenPaymentDetails ; BodyContent ; CheckoutAdyenPaymentDetails ; BodyContentSlot-CheckoutAdyenPaymentDetails | ||
; ; SideContent-CheckoutAdyenPaymentDetails ; SideContent ; CheckoutAdyenPaymentDetails ; SideContentSlot-CheckoutAdyenPaymentDetails | ||
|
||
INSERT_UPDATE CMSFlexComponent;$contentCV[unique=true];uid[unique=true];name;flexType | ||
;;CheckoutAdyenPaymentDetailsComponent;CheckoutAdyenPaymentDetailsComponent;CheckoutAdyenPaymentDetails | ||
;;AdyenOrderPaymentStatusComponent;AdyenOrderPaymentStatusComponent;AdyenOrderPaymentStatusComponent | ||
INSERT_UPDATE CMSFlexComponent; $contentCV[unique = true]; uid[unique = true] ; name ; flexType | ||
; ; CheckoutAdyenPaymentDetailsComponent ; CheckoutAdyenPaymentDetailsComponent ; CheckoutAdyenPaymentDetails | ||
; ; AdyenOrderPaymentStatusComponent ; AdyenOrderPaymentStatusComponent ; AdyenOrderPaymentStatusComponent | ||
; ; AdyenSpaExpressCheckoutCartPageComponent ; AdyenSpaExpressCheckoutCartPageComponent ; AdyenSpaExpressCheckoutCartPageComponent | ||
; ; AdyenSpaExpressCheckoutProductPageComponent ; AdyenSpaExpressCheckoutProductPageComponent ; AdyenSpaExpressCheckoutProductPageComponent | ||
|
||
UPDATE ContentSlot;$contentCV[unique=true];uid[unique=true];cmsComponents(uid, $contentCV) | ||
;;BodyContent-orderConfirmation;OrderConfirmationThankMessageComponent,AdyenOrderPaymentStatusComponent,OrderConfirmationShippingComponent,OrderConfirmationPickUpComponent,ExportOrderEntriesComponent,OrderConfirmationBillingComponent,OrderConfirmationTotalsComponent,OrderConfirmationContinueButtonComponent | ||
UPDATE ContentSlot; $contentCV[unique = true]; uid[unique = true] ; cmsComponents(uid, $contentCV) | ||
; ; BodyContent-orderConfirmation ; OrderConfirmationThankMessageComponent,AdyenOrderPaymentStatusComponent,OrderConfirmationShippingComponent,OrderConfirmationPickUpComponent,ExportOrderEntriesComponent,OrderConfirmationBillingComponent,OrderConfirmationTotalsComponent,OrderConfirmationContinueButtonComponent | ||
; ; CenterRightContentSlot-cartPage ; CartTotalsComponent,CartApplyCouponComponent,CartQuickOrderFormComponent,CartProceedToCheckoutComponent,AdyenSpaExpressCheckoutCartPageComponent | ||
; ; ProductSummarySlot ; ProductImagesComponent,ProductIntroComponent,QualtricsEmbeddedFeedbackComponent,ProductSummaryComponent,VariantSelector,AddToCart,AdyenSpaExpressCheckoutProductPageComponent,ConfigureProductComponent,AddToWishListComponent,StockNotificationComponent |
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
1 change: 1 addition & 0 deletions
1
...yments/src/lib/cart/components/express-checkout-cart/express-checkout-cart.component.html
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 @@ | ||
<p>express-checkout-cart works!</p> |
7 changes: 7 additions & 0 deletions
7
...yments/src/lib/cart/components/express-checkout-cart/express-checkout-cart.component.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@import "bootstrap/scss/bootstrap"; | ||
|
||
:host { | ||
@include media-breakpoint-down(md) { | ||
order: 6 | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...nts/src/lib/cart/components/express-checkout-cart/express-checkout-cart.component.spec.ts
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,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { ExpressCheckoutCartComponent } from './express-checkout-cart.component'; | ||
|
||
describe('ExpressCheckoutCartComponent', () => { | ||
let component: ExpressCheckoutCartComponent; | ||
let fixture: ComponentFixture<ExpressCheckoutCartComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [ExpressCheckoutCartComponent] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(ExpressCheckoutCartComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
10 changes: 10 additions & 0 deletions
10
...payments/src/lib/cart/components/express-checkout-cart/express-checkout-cart.component.ts
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,10 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'cx-express-checkout-cart', | ||
templateUrl: './express-checkout-cart.component.html', | ||
styleUrl: './express-checkout-cart.component.scss' | ||
}) | ||
export class ExpressCheckoutCartComponent { | ||
|
||
} |
22 changes: 22 additions & 0 deletions
22
...en-payments/src/lib/cart/components/express-checkout-cart/express-checkout-cart.module.ts
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,22 @@ | ||
import {NgModule} from '@angular/core'; | ||
import {CommonModule} from '@angular/common'; | ||
import {ConfigModule} from '@spartacus/core'; | ||
import {ExpressCheckoutCartComponent} from "./express-checkout-cart.component"; | ||
|
||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
ConfigModule.withConfig({ | ||
cmsComponents: { | ||
AdyenSpaExpressCheckoutCartPageComponent: { | ||
component: ExpressCheckoutCartComponent | ||
} | ||
} | ||
}) | ||
], | ||
declarations: [ExpressCheckoutCartComponent], | ||
exports: [ExpressCheckoutCartComponent] | ||
}) | ||
export class ExpressCheckoutCartModule { | ||
} |
4 changes: 0 additions & 4 deletions
4
...yments/src/lib/checkout-adyen-payment-method/checkout-adyen-payment-method.component.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
@import '@adyen/adyen-web/dist/adyen.css'; | ||
|
||
.adyen-checkout__dropin .adyen-checkout__applepay__button { | ||
-webkit-appearance: -apple-pay-button; | ||
} |
Empty file.
1 change: 1 addition & 0 deletions
1
...c/lib/product/components/express-checkout-product/express-checkout-product.component.html
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 @@ | ||
<p>express-checkout-product works!</p> |
23 changes: 23 additions & 0 deletions
23
...ib/product/components/express-checkout-product/express-checkout-product.component.spec.ts
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,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { ExpressCheckoutProductComponent } from './express-checkout-product.component'; | ||
|
||
describe('ExpressCheckoutProductComponent', () => { | ||
let component: ExpressCheckoutProductComponent; | ||
let fixture: ComponentFixture<ExpressCheckoutProductComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [ExpressCheckoutProductComponent] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(ExpressCheckoutProductComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
10 changes: 10 additions & 0 deletions
10
...src/lib/product/components/express-checkout-product/express-checkout-product.component.ts
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,10 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'cx-express-checkout-product', | ||
templateUrl: './express-checkout-product.component.html', | ||
styleUrl: './express-checkout-product.component.css' | ||
}) | ||
export class ExpressCheckoutProductComponent { | ||
|
||
} |
22 changes: 22 additions & 0 deletions
22
...ts/src/lib/product/components/express-checkout-product/express-checkout-product.module.ts
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,22 @@ | ||
import {NgModule} from '@angular/core'; | ||
import {CommonModule} from '@angular/common'; | ||
import {ConfigModule} from '@spartacus/core'; | ||
import {ExpressCheckoutProductComponent} from "./express-checkout-product.component"; | ||
|
||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
ConfigModule.withConfig({ | ||
cmsComponents: { | ||
AdyenSpaExpressCheckoutProductPageComponent: { | ||
component: ExpressCheckoutProductComponent | ||
} | ||
} | ||
}) | ||
], | ||
declarations: [ExpressCheckoutProductComponent], | ||
exports: [ExpressCheckoutProductComponent] | ||
}) | ||
export class ExpressCheckoutProductModule { | ||
} |