*/ public function methods(Store $store): array; /** * Create a payment page for the order and say where to send the shopper. * * @throws PaymentException */ public function startCheckout(Order $order, string $successUrl, string $cancelUrl): CheckoutLink; /** * Ask the provider about the order's payment page, in the account it was made in. * * @throws PaymentException */ public function checkPayment(Order $order): PaymentStatus; /** * Read a message the provider sent to our webhook address. * $fromMerchants is true for the address that hears about payments on merchants' own accounts. * Returns null when the message is about something we do not handle. * * @throws PaymentException When the message is not genuine. */ public function readWebhook(string $payload, string $signature, bool $fromMerchants = false): ?PaymentStatus; }