Skip to content
Snippets Groups Projects
Commit b5601ef6 authored by mattwire's avatar mattwire Committed by mattwire
Browse files

Enable paymentRequest button (does not work yet)

parent 427095e7
No related branches found
No related tags found
1 merge request!1526.6 to master
......@@ -332,7 +332,7 @@
var stripeElements = stripe.elements({locale: CRM.vars.stripe.locale});
createElementCard(stripeElements);
//createElementPaymentRequest(stripeElements);
createElementPaymentRequest(stripeElements);
setBillingFieldsRequiredForJQueryValidate();
submitButtons = getBillingSubmit();
......
......@@ -23,7 +23,10 @@
{* Add the components required for a Stripe card element *}
{crmScope extensionKey='com.drastikbydesign.stripe'}
<div id="card-element"></div>
{* Area for Stripe to report errors *}
<div id="card-errors" role="alert" class="crm-error alert alert-danger"></div>
<div id="stripeContainer">
<div id="card-element"></div>
<div id="paymentrequest-element" style="display: none"></div>
{* Area for Stripe to report errors *}
<div id="card-errors" role="alert" class="crm-error alert alert-danger"></div>
</div>
{/crmScope}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment