# PayTabs payment instead of stripe

**URL:** https://community.thunkable.com/t/paytabs-payment-instead-of-stripe/1113433
**Category:** Questions about Thunkable X
**Created:** [February 21, 2021, 12:17pm UTC](https://community.thunkable.com/t/paytabs-payment-instead-of-stripe/1113433 "2021-02-21T12:17:43Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![bader\_mouti](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bader_mouti/32/98887_2.png) [@bader\_mouti](https://community.thunkable.com/u/bader_mouti)
#### Post date: [February 21, 2021, 12:17pm UTC](https://community.thunkable.com/t/paytabs-payment-instead-of-stripe/1113433/1 "2021-02-21T12:17:43Z")

</div>

Hi everyone

i have see this app stripe  
[https://x.thunkable.com/projectPage/5ea05d98cbe348258277cbd5](https://x.thunkable.com/projectPage/5ea05d98cbe348258277cbd5)

but stripe not support my country and i have try 100 times to connect this app with

> **[PayTabs - Accept Payments Online](https://site.paytabs.com/en/)**
>
> A revolutionary highly-trusted payment gateway service that allows merchants to accept online payments securely & safely.

but its not work every time give me error

Can any of you connect this company in the app instead of stripe and send the project link for me?  
**and I will PAY him for this work**

THNAK YOU

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [February 21, 2021, 1:07pm UTC](https://community.thunkable.com/t/paytabs-payment-instead-of-stripe/1113433/2 "2021-02-21T13:07:09Z")

</div>

Dear @bader_mouti  
You keep changing your mind about which payment gateway to use.

You started with Stripe then 2checkout then Vapulus and now PayTab.

Programming for payment gateway integration is really hard and changing your mind makes it harder.

I made a quick test but because I do not have merchant code or secret key I get what you see in the video.

[Sample for PayTab](https://drive.google.com/file/d/1IrJGE7SM82bnFy6-OkkDgvj3ZbSuMfup/view?usp=drivesdk)

---

<div class="post-metadata">

### Author: ![bader\_mouti](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bader_mouti/32/98887_2.png) [@bader\_mouti](https://community.thunkable.com/u/bader_mouti)
#### Post date: [February 21, 2021, 1:24pm UTC](https://community.thunkable.com/t/paytabs-payment-instead-of-stripe/1113433/3 "2021-02-21T13:24:42Z")

</div>

that not about im changing my mind

im just a starter and i dont know any thing about Programming OR Coding

first im start to Programming Stripe to my app After that, I knew that it did not support my country.

After that start to Programming 2checkout And I knew that I would not be able to verify my account if I did not own a company

and know im create 2 topic one with Vapulus and one with PayTab to see if any one now this company and can help

Sorry if I bothered you by asking for help  
But of most users on Thunkable. They do not know any thing about Programming OR Coding this why we use Thunkable

Thank you fro reply with video but i was tring hard to get this button from PayTabs and i dont know how you get it

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [February 21, 2021, 1:58pm UTC](https://community.thunkable.com/t/paytabs-payment-instead-of-stripe/1113433/4 "2021-02-21T13:58:45Z")

</div>

To test payment gateway integration you need to first be certain that your code works and therefore I would start with HTML page first or an online API test app such as `postman`.

Once this is successful, I would start with Thunkable.

This is the reason I made the video to show you the first steps in the development of such integration part.

I also did another one for 2checkout but could not yet resolved the hash code the right way.

These things take time and if you do not have a ready made package you will have to do it your own the hard way.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [February 21, 2021, 4:56pm UTC](https://community.thunkable.com/t/paytabs-payment-instead-of-stripe/1113433/5 "2021-02-21T16:56:45Z")

</div>

Hello @bader_mouti  
I made it work in Thunkable

See this:

 ![Screenshot_20210221_200653](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/6/d677401c91a116385a5dcdd1deca84a0a85dd726.jpeg)

**[Update]**  
I think I made a good progress on it.

 ![Screenshot_20210221_202244](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/2/e28d0c593adae3d12657cd242ea4031fcc8723d6.jpeg)

Now when the transaction passes verification, the user is presented with this screen to enter payment details with the price fixed by the app.

I still need to work on it but the main part is over. You can also see that the page is showing my company name “Bituoil”.

---

<div class="post-metadata">

### Author: ![bader\_mouti](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bader_mouti/32/98887_2.png) [@bader\_mouti](https://community.thunkable.com/u/bader_mouti)
#### Post date: [February 21, 2021, 7:09pm UTC](https://community.thunkable.com/t/paytabs-payment-instead-of-stripe/1113433/6 "2021-02-21T19:09:02Z")

</div>

amazing work, thank you so much for that  
I don’t think I would have finished my app without this  
but can you please show me a screenshot for the blocks

thank you

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [February 21, 2021, 7:26pm UTC](https://community.thunkable.com/t/paytabs-payment-instead-of-stripe/1113433/7 "2021-02-21T19:26:11Z")

</div>

I haven’t finished doing it but will see if I can continue on it tomorrow.

First this is what you need in the Web API

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/a/0a22aab1187406cefa81986998a506a2f3b9c572.png)

Of course at this test stage I am hard coding all values but this is the least to worry about.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/2/2234df43b18e26e4ea4ce8dc8f42d9030e194d19.png)

Hope that can help you progress with your project.

---

<div class="post-metadata">

### Author: ![bader\_mouti](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bader_mouti/32/98887_2.png) [@bader\_mouti](https://community.thunkable.com/u/bader_mouti)
#### Post date: [February 21, 2021, 7:38pm UTC](https://community.thunkable.com/t/paytabs-payment-instead-of-stripe/1113433/8 "2021-02-21T19:38:04Z")

</div>

thank you so much  
i will try to create like this on my app and will updet you how it will work for me

thank you

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [February 21, 2021, 8:04pm UTC](https://community.thunkable.com/t/paytabs-payment-instead-of-stripe/1113433/9 "2021-02-21T20:04:23Z")

</div>

All the blocks arrangement was based on the following from the PayTab site.

```
curl --request POST \
  --url https://secure-global.paytabs.com/payment/request \
  --header 'authorization: Your profile server key' \
  --header 'content-type: application/json' \
  --data '{
    "profile_id": Your profile ID,
    "tran_type": "sale",
    "tran_class": "ecom" ,
    "cart_id":"4244b9fd-c7e9-4f16-8d3c-4fe7bf6c48ca",
    "cart_description": "Dummy Order 35925502061445345",
    "cart_currency": "AED",
    "cart_amount": 46.17,
    "callback": "https://yourdomain.com/yourcallback",
    "return": "https://yourdomain.com/yourpage"
  }'
```

---

<div class="post-metadata">

### Author: ![bader\_mouti](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bader_mouti/32/98887_2.png) [@bader\_mouti](https://community.thunkable.com/u/bader_mouti)
#### Post date: [February 21, 2021, 8:13pm UTC](https://community.thunkable.com/t/paytabs-payment-instead-of-stripe/1113433/10 "2021-02-21T20:13:15Z")

</div>

i have create the blocks exactly as you  
but when i click the button nothing happen

 ![Screen Shot 2021-02-21 at 10.10.16 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/2/924d316a594b2d1673c8661486a6236da52a669a.png)

![Screen Shot 2021-02-21 at 10.10.29 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/9/b91f13be281387a2745c889037efe24576f39423.png)

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [February 21, 2021, 8:18pm UTC](https://community.thunkable.com/t/paytabs-payment-instead-of-stripe/1113433/11 "2021-02-21T20:18:46Z")

</div>

I can see that `cart_currency` is missing and `cart_amount` is wrong.

Maybe there are other mistakes but these are in your blocks made wrong.

---

<div class="post-metadata">

### Author: ![bader\_mouti](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bader_mouti/32/98887_2.png) [@bader\_mouti](https://community.thunkable.com/u/bader_mouti)
#### Post date: [February 21, 2021, 9:07pm UTC](https://community.thunkable.com/t/paytabs-payment-instead-of-stripe/1113433/12 "2021-02-21T21:07:23Z")

</div>

I have corrected the error

but now the error is this

 ![IMG_6409](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/3/33420de88a59278a0bd8eb3d5ee9f02dd2768532.jpeg)

i use this URL [https://secure-jordan.paytabs.com/payment/request](https://secure-jordan.paytabs.com/payment/request)

---

<div class="post-metadata">

### Author: ![bader\_mouti](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bader_mouti/32/98887_2.png) [@bader\_mouti](https://community.thunkable.com/u/bader_mouti)
#### Post date: [February 21, 2021, 9:24pm UTC](https://community.thunkable.com/t/paytabs-payment-instead-of-stripe/1113433/13 "2021-02-21T21:24:45Z")

</div>

thank you now its working  
The problem was here in block also  
I should have chosen ( letter# from the end )

wen you will finsh the app you create can you please update me  
thank you so much muneer

 ![Screen Shot 2021-02-21 at 10.10.16 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/7/5784dc98af53ea57374d7981028a33b8d1ffbd99.png)

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [February 21, 2021, 9:27pm UTC](https://community.thunkable.com/t/paytabs-payment-instead-of-stripe/1113433/14 "2021-02-21T21:27:06Z")

</div>

I’m happy for you to see it working with you.

I will try to work on it but I have other duties to finish and testing a payment gateway is not easy. Now I have a problem that I need to solve and then see how it goes,

---

<div class="post-metadata">

### Author: ![bader\_mouti](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bader_mouti/32/98887_2.png) [@bader\_mouti](https://community.thunkable.com/u/bader_mouti)
#### Post date: [February 21, 2021, 9:31pm UTC](https://community.thunkable.com/t/paytabs-payment-instead-of-stripe/1113433/15 "2021-02-21T21:31:04Z")

</div>

really thank you so so much for help

i will waiting your update when you have a time

Thank you again 😍 🥰 😃

---

<div class="post-metadata">

### Author: ![bader\_mouti](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bader_mouti/32/98887_2.png) [@bader\_mouti](https://community.thunkable.com/u/bader_mouti)
#### Post date: [February 23, 2021, 5:10pm UTC](https://community.thunkable.com/t/paytabs-payment-instead-of-stripe/1113433/16 "2021-02-23T17:10:01Z")

</div>

hi muneer i just want too ask you how i can create a block when the payment is confirmed do something ??

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [February 23, 2021, 6:15pm UTC](https://community.thunkable.com/t/paytabs-payment-instead-of-stripe/1113433/17 "2021-02-23T18:15:50Z")

</div>

The PayTab system will do 2 things.  
1- it will issue a transaction number which you have to save it and then process another API request to check transaction status.

2- it will send the payment details to the callback URL specified in the first API call.

You need to use one of the methods or both to check the payment.

I did not test this yet but this is the general idea.

---

<div class="post-metadata">

### Author: ![bader\_mouti](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bader_mouti/32/98887_2.png) [@bader\_mouti](https://community.thunkable.com/u/bader_mouti)
#### Post date: [February 23, 2021, 8:21pm UTC](https://community.thunkable.com/t/paytabs-payment-instead-of-stripe/1113433/18 "2021-02-23T20:21:28Z")

</div>

so if i set the callback URL the link of my website and from my website i will post a message for the app

is this will work ??

i have also try this but its not work

 ![Screen Shot 2021-02-23 at 10.17.08 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/c/bc2a89a924965c4bdfceb20c3158db4002db7fb3.jpeg)

 ![Screen Shot 2021-02-23 at 10.18.01 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/1/3126cf023b79a55185ecd977a9b60c9dfa6db3b9.png)

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [February 23, 2021, 8:33pm UTC](https://community.thunkable.com/t/paytabs-payment-instead-of-stripe/1113433/19 "2021-02-23T20:33:34Z")

</div>

I don’t know. I have to try it before I can answer.

However, in your code you made `card details` under `customer details` which is wrong. They are both in the same level.

---

<div class="post-metadata">

### Author: ![bader\_mouti](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bader_mouti/32/98887_2.png) [@bader\_mouti](https://community.thunkable.com/u/bader_mouti)
#### Post date: [February 23, 2021, 8:39pm UTC](https://community.thunkable.com/t/paytabs-payment-instead-of-stripe/1113433/20 "2021-02-23T20:39:01Z")

</div>

thank you muneer i will keep trying

please dont forget to update me when you finish your app

[Next page](https://community.thunkable.com/t/paytabs-payment-instead-of-stripe/1113433.md?page=2)
