Use the WordPress Pay TargetPay library classes.