# How to accept payments inside Whatsform?

You can accept payments in WhatsForm through the Payment Component
[https://whatsform.com/help/article/1117-payment-component]. You can use Paypal,
Stripe, Razorpay and Cash as options for accepting payments. Now let's explain
with an example on how to add payment question.



In this example, we’ll be adding a payment question to an event registration
form for a one-day offline workshop with multiple Sessions. We will be adding
two Multiple Choice Questions
[https://whatsform.com/help/article/1039-multiple-choice-question] and we will
sum up these values using Calculation Component.
[https://whatsform.com/help/article/1109-calculation-component] This will help
to get the total Amount for the event registration based on the selected
options.



Go to your WhatsForm dashboard. Click on Edit for the Whatsform you want to add
payment question to.






ADD MULTIPLE CHOICE QUESTIONS

Now in the Build page we're adding our first multiple choice question
[https://whatsform.com/help/article/1039-multiple-choice-question] to choose the
preferred session, and we have added the fee for each session as values using
assign value
[https://whatsform.com/help/article/1106-how-to-assign-values-for-options]
option.

We will be adding one more Multiple Choice Question for preferred food option,
Non veg and Veg, and added amount for each option as values to it.


CALCULATION OF THE TOTAL AMOUNT

Now, let's use the Calculation Component
[https://whatsform.com/help/article/1109-calculation-component] to find the sum
of the values of options selected by the user. We have added the title as Total
Amount.



The total amount is calculated by adding the response values from two multiple
choice questions: one for selecting the session and another for choosing the
preferred food option.


ADDING PAYMENT QUESTION

In the Build Page, under Advanced you will find Payment Component
[https://whatsform.com/help/article/1117-payment-component]. Here we can set the
Title as Payment and Currency as USD.



We have the option to point to a fixed value, but here we need to point to a
Question value. For this, we are going to select the calculation question which
is named as Total Amount.




ADDING PAYMENT METHOD

Now we have to decide which payment method to choose from the multiple payment
options.

We support payment methods like

 * PayPal
   [https://whatsform.com/help/article/1113-how-to-add-paypal-as-a-payment-method]

 * Stripe
   [https://whatsform.com/help/article/1116-how-to-add-stripe-as-a-payment-method]

 * Razorpay
   [https://whatsform.com/help/article/1115-how-to-add-razorpay-as-a-payment-method]

 * Cash
   [https://whatsform.com/help/article/1114-how-to-add-cash-as-a-payment-method]




CONFIRM PAYMENT QUESTION HAS BEEN ADDED

Now Publish your Form and select Open option.



Now, in the form, select the options and let's see if the calculations are
working and if the total amount also shows the correct value for this.