-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bug/ts 24 Order notes for transactions id are missing after a new order for admin page is added (#20) * add order note after order created * debug status * TS-24: add order note when has T_id * TR-24: [Integrations]: allow gateway instantiation without wp custom functionality Co-authored-by: apetrovici <[email protected]> * Bug/ts 67 bug with issuing refund programmatically (#19) * TS-67 [Woo-commerce] - refund bug when method is called with testendpoint * TS-67 [Woocommerce] - update readme file. * TS-67: [Wocommerce] For testing - all params can be sent ?wc-api=globalpayments_test_refund&order-id=136&reason=something&amount=1 * update version to 1.2.3 * Remove validations at endpoint. code review requested changes. * TR-67: [WooCommerce]: refine test endpoint * add validation for amount * Code standar fix Co-authored-by: apetrovici <[email protected]> * TS-65 Add apple pay button style in admin (#21) * TS-65 Add apple pay button style in admin * TS-68 bug for order pay in user account Fix for Apple pay and Google pay * Remove test endpoint * Update sdk and fix digital wallets payment * Fix apple pay payment action text * tested up to tested on wordpress 6.0. and woocommerce 6.6 * Change merchant id to Client id Google pay change. * minimum php requirement change 5.5.9 to 7.1 php version * TR-25: [WooCommerce]: admin pay for order * TR-25: [WooCommerce]: version udate * add styling to button pay for order * modal margin reduce overlap * TR-25: [WooCommerce]: admin pay for order * TR-25: [WooCommerce]: update changelog * TR-25: [WooCommerce] update php sdk * TR-25: bug fix * TR-25: update readme * TR-25: [WooCommerce]: coding standards update * TR-79: [WooCommerce]: bug fix option * TR-80: [WooCommerce]: bug fix capture * TR-25: [WooCommerce]: update comments * 78-bug-design-button-for-pay-from-pay-for-order 78-bug-design-button-for-pay-from-pay-for-order * TR-25: [WooCommerce]: bug fix handle empty data * TR-25: [WooCommerce]: bug fix handle empty data * TR-77: [WooCommerce]: bug fix retrieve user token * Revert "78-bug-design-button-for-pay-from-pay-for-order" This reverts commit e7323c2. * 78-fix-button-style * fix for other fields in modal * TR-78: [WooCommerce]: bug fix button style Co-authored-by: javiercrac <[email protected]>
- Loading branch information
1 parent
80492c5
commit 72441fb
Showing
23 changed files
with
693 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/*global jQuery */ | ||
( function( $ ) { | ||
'use strict'; | ||
|
||
/** | ||
* WooCommerce Backbone Global Payments Modal plugin | ||
* | ||
* @param {object} options | ||
*/ | ||
$.fn.WCGlobalPaymentsPayOrderBackboneModal = function( options ) { | ||
return this.each( function() { | ||
( new $.WCGlobalPaymentsPayOrderBackboneModal( $( this ), options ) ); | ||
} ); | ||
}; | ||
|
||
/** | ||
* Initialize the Backbone Modal | ||
* | ||
* @param {object} element [description] | ||
* @param {object} options [description] | ||
*/ | ||
$.WCGlobalPaymentsPayOrderBackboneModal = function( element, options ) { | ||
var settings = $.extend( {}, $.WCBackboneModal.defaultOptions, options ); | ||
|
||
if ( settings.template ) { | ||
new $.WCGlobalPaymentsPayOrderBackboneModal.View( { | ||
target: settings.template, | ||
string: settings.variable | ||
} ); | ||
} | ||
}; | ||
|
||
$.WCGlobalPaymentsPayOrderBackboneModal.View = $.WCBackboneModal.View.extend( { | ||
events: _.extend( $.WCBackboneModal.View.prototype.events, { | ||
'click #place_order': 'payOrder' | ||
} ), | ||
payOrder: function( e ) { | ||
e.preventDefault(); | ||
this.block(); | ||
$.ajax( { | ||
url: globalpayments_admin_params.payorder_url, | ||
method: 'POST', | ||
data: this.getFormData(), | ||
} ).done( function ( response ) { | ||
if ( response.error ) { | ||
this.unblock(); | ||
$( document.body ).trigger( 'globalpayments_pay_order_modal_error', [ response.message ] ); | ||
} else { | ||
window.location.href = window.location.href; | ||
} | ||
}.bind( this ) ).fail( function ( xhr, textStatus, errorThrown ) { | ||
this.unblock(); | ||
$( document.body ).trigger( 'globalpayments_pay_order_modal_error', [ errorThrown ] ); | ||
}.bind( this ) ) | ||
$( document.body ).trigger( 'globalpayments_pay_order_modal_response', [ this ] ); | ||
}, | ||
block: function() { | ||
this.$el.find( '.wc-backbone-modal-content' ).block( { | ||
message: null, | ||
overlayCSS: { | ||
background: '#fff', | ||
opacity: 0.6 | ||
} | ||
} ); | ||
}, | ||
unblock: function() { | ||
this.$el.find( '.wc-backbone-modal-content' ).unblock(); | ||
}, | ||
} ); | ||
} )( jQuery ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.