Skip to content

Commit

Permalink
changes to reference number
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirk Olbertz committed Jan 21, 2025
1 parent 37402e2 commit c8d81c2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Payone/Transaction/AmazonPay.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function execute( \WC_Order $order ) {
if ( $this->should_submit_cart() ) {
$this->add_article_list_to_transaction( $order );
}
$this->set( 'reference', uniqid( 'ref', false) );
$this->set_reference( $order );
$this->set_once( 'amount', $order->get_total('edit') * 100 );
$this->set( 'currency', strtoupper( get_woocommerce_currency() ) );
$this->set_personal_data_from_order( $order );
Expand Down
2 changes: 1 addition & 1 deletion src/Payone/Transaction/AmazonPayExpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function execute( \WC_Order $order ) {
if ( $this->should_submit_cart() ) {
$this->add_article_list_to_transaction( $order );
}
$this->set( 'reference', uniqid( 'ref', false) );
$this->set_reference( $order );
$this->set_once( 'amount', $order->get_total('edit') * 100 );
$this->set( 'currency', strtoupper( get_woocommerce_currency() ) );
$this->set_personal_data_from_order( $order );
Expand Down
2 changes: 1 addition & 1 deletion src/Payone/Transaction/PayPalV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function execute( \WC_Order $order ) {
if ( $this->should_submit_cart() ) {
$this->add_article_list_to_transaction( $order );
}
$this->set( 'reference', uniqid( 'ref', false) );
$this->set_reference( $order );
$this->set_once( 'amount', $order->get_total('edit') * 100 );
$this->set( 'currency', strtoupper( get_woocommerce_currency() ) );
$this->set_personal_data_from_order( $order );
Expand Down
2 changes: 1 addition & 1 deletion src/Payone/Transaction/PayPalV2Express.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct( $gateway ) {
*/
public function execute( \WC_Order $order ) {
$this->add_article_list_to_transaction( $order );
$this->set( 'reference', uniqid( 'ref', false) );
$this->set_reference( $order );
$this->set_once( 'amount', $order->get_total('edit') * 100 );
$this->set( 'currency', strtoupper( get_woocommerce_currency() ) );
$this->set_personal_data_from_order( $order );
Expand Down

0 comments on commit c8d81c2

Please sign in to comment.