Skip to content

Commit

Permalink
Merge pull request #2 from mohamedhamdy5/main
Browse files Browse the repository at this point in the history
add $auto_confirm to careateTransaction and create function confirmTransaction
  • Loading branch information
AbdullahGhanem authored Aug 12, 2024
2 parents 4137972 + f44b898 commit fdbec04
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/DtoneController.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,13 @@ public function LookUpOperatorsForMobileNumber($mobile_number)
return Request::LookUpOperatorsForMobileNumber($mobile_number);
}

public function createTransaction($external_id, $product_id, $credit_party_identifier)
public function createTransaction($external_id, $product_id, $credit_party_identifier, $auto_confirm = false)
{
return Request::CreateTransaction($external_id, $product_id, $credit_party_identifier);
return Request::CreateTransaction($external_id, $product_id, $credit_party_identifier, $auto_confirm);
}

public function confirmTransaction($transaction_id)
{
return Request::confirmTransaction($transaction_id);
}
}

0 comments on commit fdbec04

Please sign in to comment.