{#if !payment_clicked && !form.paid}

Product Info Here

{/if} {#await load_defer} {:then} {#if form.paid}

Payment Accepted!

Thank you for your purchase, and welcome to my course! Be sure to join the Discord server when you get a chance. Details are available once you click this button:

{:else if form._errors.main}

Payment Error

{ form._errors.main }
{#if form._errors.failed_payment} There was an error validating your payment. Please contact support to investigate why it failed and check your credit card or paypal to confirm the amount was correct and the payment actually finished. {:else if form._errors.instrument_declined} Instrument declined. Check that all fields are filled out correctly. Paypal also adds fields without labeling them so look for empty fields like Street Address. {:else if form._errors.payment} Please try again and confirm that the payment didn't actually process on your side. {:else if form._errors.payment_canceled} Payment was canceled, either by you or by the payment processor. Plase try again. {/if} You can also email help@learnjsthehardway.com to ask for help.
{:else}
{#if config.fake_payments}

Fake Payment Buttons

payment_finished("fake", ev.detail) } on:error={ (ev) => payment_error("fake", ev.detail) } on:canceled={ (ev) => payment_canceled("fake", ev.detail) } /> {:else} {#if paypal_active}

Select your Payment Method

make_choice(false, true) } on:loading={ () => loading = true } on:finished={ (ev) => payment_finished("paypal", ev.detail) } on:error={ (ev) => payment_error("paypal", ev.detail) } on:canceled={ (ev) => payment_canceled("paypal", ev.detail) } /> {/if} {#if stripe_active} make_choice(true, false) } on:loading={ () => loading = true } on:finished={ (ev) => payment_finished("stripe", ev.detail) } on:error={ (ev) => payment_error("stripe", ev.detail) } on:canceled={ (ev) => payment_canceled("stripe", ev.detail) } />
make_choice(false, true)}> {:else}
make_choice(true, false)}> {/if} {/if}
{/if} {/await}
{ product.title } {#if discount > 0} {/if}
{ product.title }{product.currency_symbol}{ product.price }
Discount{ discount }
Subtotal{product.currency_symbol}{ product.price }
Total ({product.currency}) {product.currency_symbol}{ product.price }


Thank you for purchasing { product.title } If you have problems with the purchase please email me at payments@learnjsthehardway.com and tell what went wrong.