Supported and Custom Payment Gateways in Crystallize
Crystallize supports a number of major payment providers, including Stripe and PayPal. You can also add a custom payment method easily.
The payment field includes information about the payment provider, which could be Stripe, PayPal, Klarna, or even a custom one. Every payment provider has its own type that contains fields specific to that particular provider. For example, for Stripe it would contain details such as payment method, payment method ID, customer ID, order ID, etc.
If you give your customer the option to pay via cash, simply set the provider to cash and add in the amount.
If you’d like to add a custom payment provider, set provider to custom and add the necessary information as key-value pairs.
The above example queries are for when you use the payment field while creating an order via mutations. What about fetching payment details? The query below fetches the payment details for a particular order where the payment provider is Stripe.