Skip to content

Commit

Permalink
Merge branch 'plenty_dev'
Browse files Browse the repository at this point in the history
* plenty_dev:
  ADD additional payment data to preparePayment request
  FIX disable atriga user confirmation by default
  • Loading branch information
Maximilian Lauterbach committed Mar 4, 2016
2 parents 89a3945 + efcbd0a commit c6fb04c
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 7 deletions.
10 changes: 9 additions & 1 deletion dist/plentymarketsCMStools-1.0.6.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plentymarketsCMStools-1.0.6.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/plentymarketsCMStools-1.0.6.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/plentymarketsCMStools-1.0.6.min.js.map

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion src/services/CheckoutService.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@
*/
function preparePayment()
{
return API.post( "/rest/checkout/preparepayment/", null, true )
var paymentID = Checkout.getCheckout().CheckoutMethodOfPaymentID;
var paymentData = $('input[type="radio"][name="MethodOfPaymentID"][value="' + paymentID + '"]').parent().getFormValues();
return API.post( "/rest/checkout/preparepayment/", paymentData, true )
.done( function( response )
{
if ( response.data.CheckoutMethodOfPaymentRedirectURL != '' )
Expand Down Expand Up @@ -384,6 +386,12 @@
}
*/
Checkout.getCheckout().CheckoutMethodOfPaymentID = paymentID;

if( !pm.getGlobal('Checkout.AtrigaRequireUserConfirmation') )
{
Checkout.getCheckout().CheckoutAtrigapaymaxChecked = true;
}

delete Checkout.getCheckout().CheckoutCustomerShippingAddressID;
delete Checkout.getCheckout().CheckoutShippingProfileID;

Expand Down
2 changes: 1 addition & 1 deletion tools/scripts.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"libs/jquery.touchSwipe.min.js",
"libs/jquery.ui.touch-punch.min.js",
"plenty/plenty-2.js",
"plenty/plentymarketsCMStools-1.0.5.js"
"plenty/plentymarketsCMStools-1.0.6.js"
]
},
"PageDesignContent": {
Expand Down

0 comments on commit c6fb04c

Please sign in to comment.