Przejdź do głównej zawartości

PaymentCreatePayload

Result of paymentCreate.

type PaymentCreatePayload {
payment: PaymentSession
userErrors: [UserError!]!
warnings: [PaymentWarning!]!
}

Fields

PaymentCreatePayload.payment ● PaymentSession object

The created (or reused) payment session on success; null when userErrors is non-empty.

PaymentCreatePayload.userErrors ● [UserError!]! non-null object

Business / validation errors carrying a stable PaymentErrorCode in code (e.g. ORDER_NOT_FOUND, ORDER_ALREADY_PAID, ORDER_NOT_PAYABLE, PAYMENT_PROVIDER_NOT_CONFIGURED, RETURN_URL_INVALID, PAYMENT_FAILED, INSTRUMENT_PRESELECTION_FAILED).

PaymentCreatePayload.warnings ● [PaymentWarning!]! non-null object

Non-blocking signals — backend state change context (e.g. instrument auto-cleared, server-side adjustment). Default empty array. Storefront branches per code for UI retry hints / analytics events.

Returned By

paymentCreate mutation