WordPress at a glance
function is not described

Automattic\WooCommerce\Blocks\Domain

Bootstrap::register_payment_methods() protected WC 1.0

Register payment method integrations with the container.

{} It's a method of the class: Bootstrap{}

No Hooks.

Return

Null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->register_payment_methods();

Code of Bootstrap::register_payment_methods() WC 5.0.0

<?php
protected function register_payment_methods() {
	$this->container->register(
		Stripe::class,
		function( Container $container ) {
			$asset_api = $container->get( AssetApi::class );
			return new Stripe( $asset_api );
		}
	);
	$this->container->register(
		Cheque::class,
		function( Container $container ) {
			$asset_api = $container->get( AssetApi::class );
			return new Cheque( $asset_api );
		}
	);
	$this->container->register(
		PayPal::class,
		function( Container $container ) {
			$asset_api = $container->get( AssetApi::class );
			return new PayPal( $asset_api );
		}
	);
	$this->container->register(
		BankTransfer::class,
		function( Container $container ) {
			$asset_api = $container->get( AssetApi::class );
			return new BankTransfer( $asset_api );
		}
	);
	$this->container->register(
		CashOnDelivery::class,
		function( Container $container ) {
			$asset_api = $container->get( AssetApi::class );
			return new CashOnDelivery( $asset_api );
		}
	);
}