Skip to content

Commit

Permalink
feat: capture apple pay & remove unused composable
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianGerke committed Oct 30, 2024
1 parent 6f5563f commit 254f638
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 130 deletions.
6 changes: 5 additions & 1 deletion apps/web/composables/useApplePay/useApplePay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export const useApplePay = () => {
const state = useState(`useApplePay`, () => ({
scriptLoaded: false,
script: {} as ApplepayType,
paymentSession: null as ApplePaySession | null,
config: {} as ConfigResponse,
}));

Expand Down Expand Up @@ -114,6 +113,11 @@ export const useApplePay = () => {
return;
}

await captureOrder({
paypalOrderId: transaction.id,
paypalPayerId: transaction.payPalPayerId,
});

await executeOrder({
mode: 'paypal',
plentyOrderId: Number.parseInt(orderGetters.getId(order)),
Expand Down
2 changes: 0 additions & 2 deletions apps/web/composables/useMobilePaymentMethods/index.ts

This file was deleted.

12 changes: 0 additions & 12 deletions apps/web/composables/useMobilePaymentMethods/types.ts

This file was deleted.

This file was deleted.

0 comments on commit 254f638

Please sign in to comment.