Skip to content

Commit 8ac37f5

Browse files
committed
fix: show old fee allocation option for sites that don't default to seller
1 parent bbdc3e5 commit 8ac37f5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/class-wc-gateway-tradesafe.php

+15
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,21 @@ public function init_form_fields() {
458458
'desc_tip' => false,
459459
);
460460

461+
if ( ! empty( $settings['processing_fee'] ) && $settings['processing_fee'] !== 'SELLER' ) {
462+
$form['processing_fee'] = array(
463+
'title' => __( 'Fee Allocation (Legacy Setting)', 'tradesafe-payment-gateway' ),
464+
'type' => 'select',
465+
'description' => __( 'Who absorbs TradeSafe’s fee?', 'tradesafe-payment-gateway' ),
466+
'default' => 'SELLER',
467+
'options' => array(
468+
'BUYER' => 'Buyer',
469+
'SELLER' => 'Seller',
470+
'BUYER_SELLER' => 'Buyer / Seller',
471+
),
472+
'desc_tip' => false,
473+
);
474+
}
475+
461476
$this->form_fields = $form;
462477
}
463478

0 commit comments

Comments
 (0)