# jetpack/16.3-a.5/extensions/blocks/simple-payments/simple-payments.php

Jetpack – WP Security, Backup, Speed, &amp; Growth, version 16.3-a.5. 29 lines.

- Page: https://pluginprobe.com/plugins/jetpack/16.3-a.5/code/extensions/blocks/simple-payments/simple-payments.php
- Raw: https://pluginprobe.com/plugins/jetpack/16.3-a.5/raw/extensions/blocks/simple-payments/simple-payments.php
- Modified: 2025-11-24T17:00:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/jetpack/16.3-a.5/code/extensions/blocks/simple-payments/simple-payments.php#L10-L20`.

```php
<?php
/**
 * Pay with PayPal block (aka Simple Payments).
 *
 * @since 9.0.0
 *
 * @package automattic/jetpack
 */

use Automattic\Jetpack\PaypalPayments\SimplePayments\Block;

if ( ! defined( 'ABSPATH' ) ) {
	exit( 0 );
}

// Register the block
add_action( 'init', array( Block::class, 'register_block' ), 9 );

// Disable AMP for posts with the block.
add_filter( 'amp_skip_post', array( Block::class, 'amp_skip_post' ), 10, 3 );

// Load scripts for the editing interface
add_action( 'enqueue_block_editor_assets', array( Block::class, 'load_editor_scripts' ), 9 );

// Load styles in the editor iframe context
if ( is_admin() ) {
	add_action( 'enqueue_block_assets', array( Block::class, 'load_editor_styles' ), 9 );
}

```
