Skip to content

Commit

Permalink
Merge pull request globalpayments#2 from apetrovici/feature/globalpay…
Browse files Browse the repository at this point in the history
…ments-woocommerce

Feature/globalpayments woocommerce
  • Loading branch information
ahumulescu authored Jun 16, 2021
2 parents 1c277cd + 508530d commit 9e0c06c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Gateways/AbstractGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ public function process_refund( $order_id, $amount = null, $reason = '' ) {
$request = $this->prepare_request( $txn_type, $order );
$request_args = $request->get_args();
if ( empty( $request_args[ RequestArg::AMOUNT ] ) ) {
throw new Exception( __( 'Refund amount must be greater than zero.' ) );
throw new Exception( __( 'Refund amount must be greater than zero.', 'globalpayments-gateway-provider-for-woocommerce' ) );
}
$response = $this->submit_request( $request );
$is_successful = $this->handle_response( $request, $response );
Expand Down
4 changes: 2 additions & 2 deletions src/Gateways/Handlers/PaymentTokenHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

class PaymentTokenHandler extends AbstractHandler {
public function handle() {
if ( ! $this->response->token ) {
return;
if ( empty( $this->response->token ) ) {
return;
}

( new PaymentTokenData( $this->request ) )->save_new_token( $this->response->token, $this->response->cardBrandTransactionId );
Expand Down

0 comments on commit 9e0c06c

Please sign in to comment.