WP Simple Pay: Programmatically Access Payment Metadata After Payment

/** * @link https://library.wpcode.com/snippet/3234p8or/ * * @param StripeEvent $event Stripe Event. * @param StripeSubscription|StripePaymentIntent $object Stripe Subscription or PaymentIntent */ function simpay_custom_create_user( $event, $object ) { $metadata = $object->metadata->toArray(); // Access a custom field with a “Stripe Metadata Label” of…Continue reading

WP Simple Pay: Add More Aggressive Rate Limiting

/** * @link https://library.wpcode.com/snippet/r5p3r9o8/ */ /** * Lower the number of requests allowed for the set timeframe to 3 (default 5). */ add_filter( ‘simpay_rate_limiting_max_rate_count’, /** * @return int The number of requests that can be made in the timeframe. */…Continue reading