Skip to main content
More in Learn

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.

Create your Order mutation body

Before starting with this section, we recommend reading about the order object, as well as how to create an order mutation.

Payment field

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.


The example below is for when the payment provider is Stripe.


The following code snippet displays the payment field when the provider is set to PayPal.


This is what the payment field would look like if the provider is Klarna.


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.

Querying Payment Field

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.

People showing thumbs up

Need further assistance?

Ask the Crystallize team or other enthusiasts in our slack community.

Join our slack community