@t('Stripe Custom Account')

@t('Use this if you want to allow venues to use their own account')

{!! Form::label( 'data[Settings][stripe][public_key]', t('Stripe Public Key') ) !!} {!! Form::text( 'data[Settings][stripe][public_key]', ( isset($data->Settings->stripe->public_key) ? $data->Settings->stripe->public_key : null ), [ 'placeholder' => 'string starting with pk_live_' ] ) !!}
{!! Form::label( 'data[Settings][stripe][secret_key]', t('Stripe Secret Key') ) !!} {!! Form::text( 'data[Settings][stripe][secret_key]', ( isset($data->Settings->stripe->secret_key) ? $data->Settings->stripe->secret_key : null ), [ 'placeholder' => 'string starting with sk_live_' ] ) !!}
{!! Form::label( 'data[Settings][stripe][secret_webhook]', t('Stripe Webhook Secret') ) !!} {!! Form::text( 'data[Settings][stripe][secret_webhook]', ( isset($data->Settings->stripe->secret_webhook) ? $data->Settings->stripe->secret_webhook : null ), [ 'placeholder' => 'string starting with whsec_' ] ) !!}
{!! Form::hidden( 'data[Settings][stripe][express]', 0 ) !!} {!! Form::checkbox( 'data[Settings][stripe][express]', 1, ( isset($data->Settings->stripe->express) && $data->Settings->stripe->express ? true : false ) ) !!} {!! Form::label( 'data[Settings][stripe][express]', 'Enable Paypal Express Checkout' ) !!}

To allow Stripe payments to work correctly you need to create a webhook in the customer's account. Follow the steps:

  1. Open the stripe dashboard - https://dashboard.stripe.com/webhooks
  2. Press the button +Add endpoint
  3. In the field "Endpoint URL" enter the following url:
    https://bookedit.licklist.co.uk/stripe/stripe/webhook.json?venue_id={{ $data->Settings->venue_id }}
  4. In the same form click on the "+ Select Events" and from the list select "Charge->charge.captured"
  5. Press Add endpoint to save the webhook

Once the webhook is created. Click over the new webhook record and in the top you can see "Singing secret" and underneath there is "Reveal".

Click on Reveal and Copy the string which would start with whsec_

Place the string into the field Stripe webhook and save the form