File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
app/code/Magento/InstantPurchase Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 7
7
-->
8
8
<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:App/etc/routes.xsd" >
9
9
<router id =" standard" >
10
- <route id =" onetouchorder " frontName =" onetouchorder " >
10
+ <route id =" instantpurchase " frontName =" instantpurchase " >
11
11
<module name =" Magento_InstantPurchase" />
12
12
</route >
13
13
</router >
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ define(
54
54
var self = this ;
55
55
56
56
this . _super ( ) ;
57
- $ . get ( urlBuilder . build ( 'onetouchorder /button/available' ) ) . done ( function ( data ) {
57
+ $ . get ( urlBuilder . build ( 'instantpurchase /button/available' ) ) . done ( function ( data ) {
58
58
if ( typeof data . available !== 'undefined' ) {
59
59
self . showButton ( data . available ) ;
60
60
self . options . cards ( data . cards ) ;
@@ -101,7 +101,7 @@ define(
101
101
/**
102
102
* Confirmation method
103
103
*/
104
- oneTouchOrder : function ( ) {
104
+ instantPurchase : function ( ) {
105
105
var self = this ,
106
106
form = $ ( self . options . formSelector ) ,
107
107
confirmTemplate = mageTemplate ( this . options . confirmTemplate ) ;
@@ -124,7 +124,7 @@ define(
124
124
/** @inheritdoc */
125
125
confirm : function ( ) {
126
126
$ . ajax ( {
127
- url : urlBuilder . build ( 'onetouchorder /button/placeOrder' ) ,
127
+ url : urlBuilder . build ( 'instantpurchase /button/placeOrder' ) ,
128
128
data : form . serialize ( ) ,
129
129
type : 'post' ,
130
130
dataType : 'json' ,
Original file line number Diff line number Diff line change 2
2
< button type ="button "
3
3
class ="action primary onetouch "
4
4
id ="product-onetouch-button "
5
- data-bind ="click: oneTouchOrder , attr:{title: buttonText} ">
5
+ data-bind ="click: instantPurchase , attr:{title: buttonText} ">
6
6
< span data-bind ="text: buttonText "> </ span >
7
7
</ button >
8
8
You can’t perform that action at this time.
0 commit comments