403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/cvetdv.ru/bitrix/js/sale/payment-pay/lib/src/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/cvetdv.ru/bitrix/js/sale/payment-pay/lib/src/abstract-backend-provider.js
export class AbstractBackendProvider
{
	constructor(options) {
		this.options = options || {};
	}

	/**
	 * @public
	 * @returns {Promise} Resolve when backend responds, reject if there was 4** or 5** HTTP errors
	 */
	initiatePayment() {}

	/**
	 * @public
	 * @returns {object|string|*} Plain response from backend
	 */
	getResponse() {}

	/**
	 * Returns true if payment inited and user can be redirected to payment gate.
	 * @public
	 * @returns {boolean}
	 */
	isResponseSucceed() {}

	/**
	 * Returns url of payment gate which user can be redirected to, or null.
	 * @public
	 * @returns {string|null}
	 */
	getPaymentGateUrl() {}

	/**
	 * Returns HTML-chunk with payment form which can be displayed to user, or null.
	 * @public
	 * @returns {string|null}
	 */
	getPaymentFormHtml() {}

	/**
	 * @protected
	 * @param {string} name
	 * @param {*} defaultValue
	 * @returns {*}
	 */
	option(name, defaultValue) {
		return this.options.hasOwnProperty(name) ? this.options[name] : defaultValue;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit