diff --git a/packages/docs/stories/examples/checkout/004.payment.stories.tsx b/packages/docs/stories/examples/checkout/004.payment.stories.tsx index fed6a431..cf00d261 100644 --- a/packages/docs/stories/examples/checkout/004.payment.stories.tsx +++ b/packages/docs/stories/examples/checkout/004.payment.stories.tsx @@ -42,51 +42,44 @@ export const PaymentMethods: StoryFn = () => { }} > {isPlaced ? ( -
-

Thank you!

-

Your order has been successfully placed

-
+ ) : ( <> { - // if (res.placed) setPlaced(true) - // } - // } + config={{ + stripePayment: { + appearance: {}, + containerClassName: 'flex-1 pl-4', + options: {} + }, + adyenPayment: { + placeOrderCallback: (data) => { + if (data.placed) { + setIsPlaced(true) + } + } } - } + }} > - - - + + +
@@ -142,3 +135,12 @@ export const PaymentMethods: StoryFn = () => { ) } + +const SampleThankYouPage: React.FC = () => { + return ( +
+

Thank you!

+

Your order has been successfully placed

+
+ ) +}