Withdrawal::withdraw_methods()


Source

File: classes/Withdrawal.php

	public function withdraw_methods() {
		$methods = [

			'bank_transfer_withdraw' => [

				'method_name'       => __( 'Bank Transfer', 'dozent' ),
				'desc'              => __( 'Get your payment directly into your bank account', 'dozent' ),
				'admin_form_fields' => [
					'instruction' => [
						'type'  => 'textarea',
						'label' => __( 'Instruction', 'dozent' ),
						'desc'  => __( 'Write instruction for the instructor to fill bank information', 'dozent' ),
					],
				],

				'form_fields' => [
					'account_name' => [
						'type'  => 'text',
						'label' => __( 'Account Name', 'dozent' ),
					],

					'account_number' => [
						'type'  => 'text',
						'label' => __( 'Account Number', 'dozent' ),
					],

					'bank_name' => [
						'type'  => 'text',
						'label' => __( 'Bank Name', 'dozent' ),
					],
					'iban'      => [
						'type'  => 'text',
						'label' => __( 'IBAN', 'dozent' ),
					],
					'swift'     => [
						'type'  => 'text',
						'label' => __( 'BIC / SWIFT', 'dozent' ),
					],
				],
			],

			'echeck_withdraw' => [
				'method_name' => __( 'E-Check', 'dozent' ),
				'form_fields' => [
					'physical_address' => [
						'type'  => 'textarea',
						'label' => __( 'Your Physical Address', 'dozent' ),
						'desc'  => __( 'We will send you an E-Check to this address directly.', 'dozent' ),
					],
				],
			],

			'paypal_withdraw' => [
				'method_name' => __( 'PayPal', 'dozent' ),
				'form_fields' => [
					'paypal_email' => [
						'type'  => 'email',
						'label' => __( 'PayPal E-Mail Address', 'dozent' ),
						'desc'  => __( 'Write your paypal email address to get payout directly to your paypal account',
							'dozent' ),
					],
				],
			],
		];

		$withdraw_methods = apply_filters( 'dozent_withdraw_methods', $methods );

		return $withdraw_methods;
	}