Skip to content

Commit

Permalink
Merge pull request globalpayments#14 from apetrovici/feature/globalpa…
Browse files Browse the repository at this point in the history
…yments-woocommerce

add composer files
  • Loading branch information
securesubmit-buildmaster authored Dec 7, 2021
2 parents 8189dcc + c5ec7c6 commit c8c1330
Show file tree
Hide file tree
Showing 6 changed files with 2,372 additions and 5 deletions.
4 changes: 2 additions & 2 deletions assets/frontend/js/globalpayments-secure-payment-fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,15 @@
}

$.post( this.threedsecure.ajaxCheckoutUrl, $( this.getForm() ).serialize())
.success( function( result ) {
.done( function( result ) {
if ( -1 !== result.messages.indexOf( self.id + '_checkout_validated' ) ) {
self.createInputElement( 'checkout_validated', 1 );
self.threeDSecure();
} else {
self.showPaymentError( result.messages );
}
})
.error( function( jqXHR, textStatus, errorThrown ) {
.fail( function( jqXHR, textStatus, errorThrown ) {
self.showPaymentError( errorThrown );
});

Expand Down
28 changes: 28 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "globalpayments/globalpayments-woocommerce",
"description": "This extension allows WooCommerce to use the available Global Payments payment gateways. All card data is tokenized using the respective gateway's tokenization service.",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Global Payments"
}
],
"autoload": {
"psr-4": {
"GlobalPayments\\WooCommercePaymentGatewayProvider\\": "src/"
}
},
"require": {
"globalpayments/php-sdk": "2.3.13",
"psr/log": "^1.1"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.5",
"phpstan/phpstan": "^0.12.69"
},
"scripts": {
"test": [ "phpcs", "phpstan analyse --level 8 src test", "phpunit" ]
}
}
Loading

0 comments on commit c8c1330

Please sign in to comment.