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

\!183 Fix javascript translation (drop use of assetbuilder)

parent bacddb99
Branches
Tags
1 merge request!2096.8
......@@ -474,13 +474,10 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
'weight' => -1,
]);
CRM_Core_Region::instance('billing-block')->add([
'scriptUrl' => \Civi::service('asset_builder')->getUrl(
'civicrmStripe.js',
[
'path' => \Civi::resources()->getPath(E::LONG_NAME, 'js/civicrm_stripe.js'),
'mimetype' => 'application/javascript',
]
),
'scriptFile' => [
E::LONG_NAME,
'js/civicrmStripe.js',
],
// Load after other scripts on form (default = 1)
'weight' => 100,
]);
......
......@@ -146,5 +146,5 @@ API3 `StripePaymentIntent.Process` now allows you to implement Stripe [setupInte
which allow you to capture the user authentication (eg. 3DSecure) without taking payment.
This is used for creating subscriptions and for delayed payments when you don't know the exact amount until you've completed "checkout".
See civicrm_stripe.js for an example implementation. Note the return values in our implementation are more consistent that paymentIntents.
See civicrmStripe.js for an example implementation. Note the return values in our implementation are more consistent that paymentIntents.
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment