# Help with creating a payment link

**URL:** <https://www.phphelp.com/t/help-with-creating-a-payment-link/36486>\
**Category:** General PHP Help\
**Created:** [May 31, 2025, 2:36pm UTC](https://www.phphelp.com/t/help-with-creating-a-payment-link/36486 "2025-05-31T14:36:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gethelphp](https://www.phphelp.com/letter_avatar_proxy/v4/letter/g/eada6e/32.png) [@gethelphp](https://www.phphelp.com/u/gethelphp)\
**Post date:** [May 31, 2025, 2:36pm UTC](https://www.phphelp.com/t/help-with-creating-a-payment-link/36486/1 "2025-05-31T14:36:33Z")

</div>

Hello, I’m new to programming and I’ve been having trouble creating a payment link for the Chargily platform, which allows payments in local currency and offers several applications, including WooCommerce. I want to create a payment link so that once the payment is made, the customer is redirected to a page of my choice, . I have hosting on ipage and I’m using the gpt chat platform to create the code, but it’s not working. I don’t know why. Is the problem with the hosting or the code? The hosting doesn’t support PHP version 8. Here is some useful information: [Chargily · GitHub](https://github.com/Chargily)  
and the public key:  
test\_pk\_c7DvXD0501BRU7TlKkdHWf5X4n91tLkfcjzeIZ5Y  
Secret key:  
test\_sk\_QQEAr7HJSJ14qOqfwDksoYgPaqFWWkq6Vwy9gFQj  
if you need more information plz let me know … thanks for reading

---

<div class="post-metadata">

**Author:** ![Mchojrin](https://www.phphelp.com/user_avatar/www.phphelp.com/mchojrin/32/3455_2.png) [@Mchojrin](https://www.phphelp.com/u/Mchojrin)\
**Post date:** [June 4, 2025, 1:01pm UTC](https://www.phphelp.com/t/help-with-creating-a-payment-link/36486/2 "2025-06-04T13:01:38Z")

</div>

Hey. First of all, it’s probably not a great idea to post public+secret key in open forums like this. I assume the `test` prefix means there’s no real data behind those credentials but still… I’d recommend not doing this in the future.

Now, if you posted the code you’re having trouble with (The one you or ChatGPT created), we could perhaps point you in the right direction, just with the library GitHub it is hard to pinpoint the specific issue you might be facing.
