popekabu / pay_with_paystack

MIT License
9 stars 21 forks source link

transactionCompleted and transactionNotCompleted functions are still not working #15

Closed ebenoasis closed 8 months ago

ebenoasis commented 9 months ago

I don't if it's true or not but I think after you updated the code on your side you mistakenly uploaded the old version to pub.dev because notthing has changed with the transactionCompleted and transactionNotCompleted functions. It's still not printing or performing any other fumction. Even after installing the newest version pay_with_paystack: ^1.0.7+1.

popekabu commented 9 months ago

That’s strange. I will check it out. Thanks for letting me know On Wed, 6 Dec 2023 at 1:20 PM, ebenoasis @.***> wrote:

I don't if it's true or not but I think after you updated the code on your side you mistakenly uploaded the old version to pub.dev because notthing has changed with the transactionCompleted and transactionNotCompleted functions. It's still not printing or performing any other fumction. Even after installing the newest version pay_with_paystack: ^1.0.7+1.

— Reply to this email directly, view it on GitHub https://github.com/popekabu/pay_with_paystack/issues/15, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGMACNJ7RXANIXA5GATPA53YIBWKDAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZDQNJUGMZDCMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ebenoasis commented 9 months ago

Please check it. It would help a lot

popekabu commented 9 months ago

Ok, I will check. Thanks

On Fri, 8 Dec 2023 at 10:33 AM, ebenoasis @.***> wrote:

Please check it. It would help a lot

— Reply to this email directly, view it on GitHub https://github.com/popekabu/pay_with_paystack/issues/15#issuecomment-1846931872, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGMACNKYMQXB4L6UPV52ER3YILUGRAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBWHEZTCOBXGI . You are receiving this because you commented.Message ID: @.***>

BishopSam commented 9 months ago

hello good day,

any update on this? as the transactionCompleted and transactionNotCompleted methods are still not working

BishopSam commented 9 months ago

I think the issue is from paystack

the URL doesn't redirect when the transaction is complete or not complete

so the NavigationDelegate in the webview cannot detect the "cancel URL" or "paystack.co/close"

I have tried to inspect it, it looks like they somehow go to a verification page without changing the URL, and they get a response aswell

Alade5673 commented 9 months ago

how can we go about it?

what's the solution?

ebenoasis commented 8 months ago

I think the issue is from paystack

the URL doesn't redirect when the transaction is complete or not complete

so the NavigationDelegate in the webview cannot detect the "cancel URL" or "paystack.co/close"

I have tried to inspect it, it looks like they somehow go to a verification page without changing the URL, and they get a response aswell

I contacted paystack support and I was told the problem is from how the dependency was developed and it's not from them. can you please check and help again please. This is the message from paystack support:

Thank you for your response.

Since the issue is happening in the library, it is not a Paystack issue but an issue from how the developer built the library. The developer needs to confirm how he handles callbacks and what API he is making use of, as that might be the issue. The library was built externally and not by Paystack so we might not have the bandwidth to look into this.

I have however suggested another alternative to this library for you to use webview library as documented here.

popekabu commented 8 months ago

Set your callback url in your paystack dashboard and define it in your code. It should work. It works for me here.

On Thu, 14 Dec 2023 at 2:54 PM, ebenoasis @.***> wrote:

I think the issue is from paystack

the URL doesn't redirect when the transaction is complete or not complete

so the NavigationDelegate in the webview cannot detect the "cancel URL" or "paystack.co/close"

I have tried to inspect it, it looks like they somehow go to a verification page without changing the URL, and they get a response aswell

I contacted paystack support and I was told the problem is from how the dependency was developed and it's not from them. can you please check and help again please. This is the message from paystack support:

Thank you for your response.

Since the issue is happening in the library, it is not a Paystack issue but an issue from how the developer built the library. The developer needs to confirm how he handles callbacks and what API he is making use of, as that might be the issue. The library was built externally and not by Paystack so we might not have the bandwidth to look into this.

I have however suggested another alternative to this library for you to use webview library as documented here https://paystack.com/docs/guides/using_the_paystack_checkout_in_a_mobile_webview/#why-use-a-webview .

— Reply to this email directly, view it on GitHub https://github.com/popekabu/pay_with_paystack/issues/15#issuecomment-1855998782, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGMACNMPF57J3HXL732W4FDYJMHLZAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVHE4TQNZYGI . You are receiving this because you commented.Message ID: @.***>

popekabu commented 8 months ago

Set your callback url in your paystack dashboard and set the same in your code. Should work

On Thu, 14 Dec 2023 at 2:56 PM, Daniel Kabu Asare @.***> wrote:

Set your callback url in your paystack dashboard and define it in your code. It should work. It works for me here.

On Thu, 14 Dec 2023 at 2:54 PM, ebenoasis @.***> wrote:

I think the issue is from paystack

the URL doesn't redirect when the transaction is complete or not complete

so the NavigationDelegate in the webview cannot detect the "cancel URL" or "paystack.co/close"

I have tried to inspect it, it looks like they somehow go to a verification page without changing the URL, and they get a response aswell

I contacted paystack support and I was told the problem is from how the dependency was developed and it's not from them. can you please check and help again please. This is the message from paystack support:

Thank you for your response.

Since the issue is happening in the library, it is not a Paystack issue but an issue from how the developer built the library. The developer needs to confirm how he handles callbacks and what API he is making use of, as that might be the issue. The library was built externally and not by Paystack so we might not have the bandwidth to look into this.

I have however suggested another alternative to this library for you to use webview library as documented here https://paystack.com/docs/guides/using_the_paystack_checkout_in_a_mobile_webview/#why-use-a-webview .

— Reply to this email directly, view it on GitHub https://github.com/popekabu/pay_with_paystack/issues/15#issuecomment-1855998782, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGMACNMPF57J3HXL732W4FDYJMHLZAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVHE4TQNZYGI . You are receiving this because you commented.Message ID: @.***>

popekabu commented 8 months ago

Set your callback url in your paystack dashboard and set the same in your code. Should work

On Thu, 14 Dec 2023 at 2:56 PM, Daniel Kabu Asare @.***> wrote:

Set your callback url in your paystack dashboard and set the same in your code. Should work

On Thu, 14 Dec 2023 at 2:56 PM, Daniel Kabu Asare @.***> wrote:

Set your callback url in your paystack dashboard and define it in your code. It should work. It works for me here.

On Thu, 14 Dec 2023 at 2:54 PM, ebenoasis @.***> wrote:

I think the issue is from paystack

the URL doesn't redirect when the transaction is complete or not complete

so the NavigationDelegate in the webview cannot detect the "cancel URL" or "paystack.co/close"

I have tried to inspect it, it looks like they somehow go to a verification page without changing the URL, and they get a response aswell

I contacted paystack support and I was told the problem is from how the dependency was developed and it's not from them. can you please check and help again please. This is the message from paystack support:

Thank you for your response.

Since the issue is happening in the library, it is not a Paystack issue but an issue from how the developer built the library. The developer needs to confirm how he handles callbacks and what API he is making use of, as that might be the issue. The library was built externally and not by Paystack so we might not have the bandwidth to look into this.

I have however suggested another alternative to this library for you to use webview library as documented here https://paystack.com/docs/guides/using_the_paystack_checkout_in_a_mobile_webview/#why-use-a-webview .

— Reply to this email directly, view it on GitHub https://github.com/popekabu/pay_with_paystack/issues/15#issuecomment-1855998782, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGMACNMPF57J3HXL732W4FDYJMHLZAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVHE4TQNZYGI . You are receiving this because you commented.Message ID: @.***>

ebenoasis commented 8 months ago

Set your callback url in your paystack dashboard and set the same in your code. Should work On Thu, 14 Dec 2023 at 2:56 PM, Daniel Kabu Asare @.> wrote: Set your callback url in your paystack dashboard and set the same in your code. Should work On Thu, 14 Dec 2023 at 2:56 PM, Daniel Kabu Asare @.> wrote: > Set your callback url in your paystack dashboard and define it in your > code. It should work. It works for me here. > > On Thu, 14 Dec 2023 at 2:54 PM, ebenoasis @.> > wrote: > >> I think the issue is from paystack >> >> the URL doesn't redirect when the transaction is complete or not complete >> >> so the NavigationDelegate in the webview cannot detect the "cancel URL" >> or "paystack.co/close" >> >> I have tried to inspect it, it looks like they somehow go to a >> verification page without changing the URL, and they get a response aswell >> >> I contacted paystack support and I was told the problem is from how the >> dependency was developed and it's not from them. can you please check and >> help again please. >> This is the message from paystack support: >> >> Thank you for your response. >> >> Since the issue is happening in the library, it is not a Paystack issue >> but an issue from how the developer built the library. The developer needs >> to confirm how he handles callbacks and what API he is making use of, as >> that might be the issue. The library was built externally and not by >> Paystack so we might not have the bandwidth to look into this. >> >> I have however suggested another alternative to this library for you to >> use webview library as documented here >> https://paystack.com/docs/guides/using_the_paystack_checkout_in_a_mobile_webview/#why-use-a-webview >> . >> >> — >> Reply to this email directly, view it on GitHub >> <#15 (comment)>, >> or unsubscribe >> https://github.com/notifications/unsubscribe-auth/AGMACNMPF57J3HXL732W4FDYJMHLZAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVHE4TQNZYGI >> . >> You are receiving this because you commented.Message ID: >> @.> >> >

I am sorry if I'm ignorant of this as I am a newbie in programming but from your dependency the callback url is a String and I don't know hpw to create that callback url string. And I certainly don't know how to set it in the paystack dashboard. Please help. Maybe a YouTube video might help

popekabu commented 8 months ago

A call back url is a place you want paystack to redirect you to after the user has failed or successfully made a transaction. It can be any url of your choice. Can be Google.com or anything. You will need to define your callback url in your paystack admin dashboard and then declare it as a string in the plugin parameter for callbackurl.

Once the user fails or successfully makes a transaction. Paystack redirects him there. Since the callback url in paystack js the same callback url in your code. It will make a check and then either executes a transaction successful transaction or failed transaction function.

Hope it makes sense

On Thu, 14 Dec 2023 at 4:43 PM, ebenoasis @.***> wrote:

Set your callback url in your paystack dashboard and set the same in your code. Should work On Thu, 14 Dec 2023 at 2:56 PM, Daniel Kabu Asare @.

> wrote: … <#m-4346951606204671141> Set your callback url in your paystack dashboard and set the same in your code. Should work On Thu, 14 Dec 2023 at 2:56 PM, Daniel Kabu Asare @.> wrote: > Set your callback url in your paystack dashboard and define it in your > code. It should work. It works for me here. > > On Thu, 14 Dec 2023 at 2:54 PM, ebenoasis @.*> > wrote: > >> I think the issue is from paystack >> >> the URL doesn't redirect when the transaction is complete or not complete >> >> so the NavigationDelegate in the webview cannot detect the "cancel URL" >> or "paystack.co/close http://paystack.co/close" >> >> I have tried to inspect it, it looks like they somehow go to a >> verification page without changing the URL, and they get a response aswell >> >> I contacted paystack support and I was told the problem is from how the >> dependency was developed and it's not from them. can you please check and >> help again please. >> This is the message from paystack support: >> >> Thank you for your response. >> >> Since the issue is happening in the library, it is not a Paystack issue >> but an issue from how the developer built the library. The developer needs >> to confirm how he handles callbacks and what API he is making use of, as >> that might be the issue. The library was built externally and not by >> Paystack so we might not have the bandwidth to look into this. >> >> I have however suggested another alternative to this library for you to >> use webview library as documented here >> https://paystack.com/docs/guides/using_the_paystack_checkout_in_a_mobile_webview/#why-use-a-webview https://paystack.com/docs/guides/using_the_paystack_checkout_in_a_mobile_webview/#why-use-a-webview

. >> >> — >> Reply to this email directly, view it on GitHub >> <#15 (comment) https://github.com/popekabu/pay_with_paystack/issues/15#issuecomment-1855998782>, or unsubscribe >> https://github.com/notifications/unsubscribe-auth/AGMACNMPF57J3HXL732W4FDYJMHLZAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVHE4TQNZYGI https://github.com/notifications/unsubscribe-auth/AGMACNMPF57J3HXL732W4FDYJMHLZAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVHE4TQNZYGI . >> You are receiving this because you commented.Message ID: >> @.*>

I am sorry if I'm ignorant of this as I am a newbie in programming but from your dependency the callback url is a String and I don't know hpw to create that callback url string. And I certainly don't know how to set it in the paystack dashboard. Please help

— Reply to this email directly, view it on GitHub https://github.com/popekabu/pay_with_paystack/issues/15#issuecomment-1856185442, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGMACNMNBHLYEP7MCAB5ZX3YJMUBRAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWGE4DKNBUGI . You are receiving this because you commented.Message ID: @.***>

ebenoasis commented 8 months ago

A call back url is a place you want paystack to redirect you to after the user has failed or successfully made a transaction. It can be any url of your choice. Can be Google.com or anything. You will need to define your callback url in your paystack admin dashboard and then declare it as a string in the plugin parameter for callbackurl. Once the user fails or successfully makes a transaction. Paystack redirects him there. Since the callback url in paystack js the same callback url in your code. It will make a check and then either executes a transaction successful transaction or failed transaction function. Hope it makes sense On Thu, 14 Dec 2023 at 4:43 PM, ebenoasis @.> wrote: Set your callback url in your paystack dashboard and set the same in your code. Should work On Thu, 14 Dec 2023 at 2:56 PM, Daniel Kabu Asare @. > wrote: … <#m-4346951606204671141> Set your callback url in your paystack dashboard and set the same in your code. Should work On Thu, 14 Dec 2023 at 2:56 PM, Daniel Kabu Asare @.> wrote: > Set your callback url in your paystack dashboard and define it in your > code. It should work. It works for me here. > > On Thu, 14 Dec 2023 at 2:54 PM, ebenoasis @.> > wrote: > >> I think the issue is from paystack >> >> the URL doesn't redirect when the transaction is complete or not complete >> >> so the NavigationDelegate in the webview cannot detect the "cancel URL" >> or "paystack.co/close http://paystack.co/close" >> >> I have tried to inspect it, it looks like they somehow go to a >> verification page without changing the URL, and they get a response aswell >> >> I contacted paystack support and I was told the problem is from how the >> dependency was developed and it's not from them. can you please check and >> help again please. >> This is the message from paystack support: >> >> Thank you for your response. >> >> Since the issue is happening in the library, it is not a Paystack issue >> but an issue from how the developer built the library. The developer needs >> to confirm how he handles callbacks and what API he is making use of, as >> that might be the issue. The library was built externally and not by >> Paystack so we might not have the bandwidth to look into this. >> >> I have however suggested another alternative to this library for you to >> use webview library as documented here >> https://paystack.com/docs/guides/using_the_paystack_checkout_in_a_mobile_webview/#why-use-a-webview https://paystack.com/docs/guides/using_the_paystack_checkout_in_a_mobile_webview/#why-use-a-webview >> . >> >> — >> Reply to this email directly, view it on GitHub >> <#15 (comment) <#15 (comment)>>, >> or unsubscribe >> https://github.com/notifications/unsubscribe-auth/AGMACNMPF57J3HXL732W4FDYJMHLZAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVHE4TQNZYGI https://github.com/notifications/unsubscribe-auth/AGMACNMPF57J3HXL732W4FDYJMHLZAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVHE4TQNZYGI >> . >> You are receiving this because you commented.Message ID: >> @.> >> > I am sorry if I'm ignorant of this as I am a newbie in programming but from your dependency the callback url is a String and I don't know hpw to create that callback url string. And I certainly don't know how to set it in the paystack dashboard. Please help — Reply to this email directly, view it on GitHub <#15 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGMACNMNBHLYEP7MCAB5ZX3YJMUBRAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWGE4DKNBUGI . You are receiving this because you commented.Message ID: @.>

I'm a bit confused. I'm creating a mobile app. So I want that after successful or failure of payment I want to be redirected to my app, not to a website. Is that possible?

popekabu commented 8 months ago

Usually the callbackurl in paystack is for backend related stuffs. In our case we don’t want to create a backend server for that.

It’s fine if it’s a mobile app. Just make sure it’s any url that’s the same in the paystack dashboard and the in your code.

On Thu, 14 Dec 2023 at 5:14 PM, ebenoasis @.***> wrote:

A call back url is a place you want paystack to redirect you to after the user has failed or successfully made a transaction. It can be any url of your choice. Can be Google.com or anything. You will need to define your callback url in your paystack admin dashboard and then declare it as a string in the plugin parameter for callbackurl. Once the user fails or successfully makes a transaction. Paystack redirects him there. Since the callback url in paystack js the same callback url in your code. It will make a check and then either executes a transaction successful transaction or failed transaction function. Hope it makes sense … <#m-3366040474327510720> On Thu, 14 Dec 2023 at 4:43 PM, ebenoasis @.*> wrote: Set your callback url in your paystack dashboard and set the same in your code. Should work On Thu, 14 Dec 2023 at 2:56 PM, Daniel Kabu Asare @. > wrote: … <#m-4346951606204671141> Set your callback url in your paystack dashboard and set the same in your code. Should work On Thu, 14 Dec 2023 at 2:56 PM, Daniel Kabu Asare @.> wrote: > Set your callback url in your paystack dashboard and define it in your > code. It should work. It works for me here. > > On Thu, 14 Dec 2023 at 2:54 PM, ebenoasis @.> > wrote: > >> I think the issue is from paystack >> >> the URL doesn't redirect when the transaction is complete or not complete >> >> so the NavigationDelegate in the webview cannot detect the "cancel URL" >> or "paystack.co/close http://paystack.co/close http://paystack.co/close http://paystack.co/close" >> >> I have tried to inspect it, it looks like they somehow go to a >> verification page without changing the URL, and they get a response aswell >> >> I contacted paystack support and I was told the problem is from how the >> dependency was developed and it's not from them. can you please check and >> help again please. >> This is the message from paystack support: >> >> Thank you for your response. >> >> Since the issue is happening in the library, it is not a Paystack issue >> but an issue from how the developer built the library. The developer needs

to confirm how he handles callbacks and what API he is making use of, as that might be the issue. The library was built externally and not by >> Paystack so we might not have the bandwidth to look into this. >> >> I have however suggested another alternative to this library for you to >> use webview library as documented here >> https://paystack.com/docs/guides/using_the_paystack_checkout_in_a_mobile_webview/#why-use-a-webview https://paystack.com/docs/guides/using_the_paystack_checkout_in_a_mobile_webview/#why-use-a-webview https://paystack.com/docs/guides/using_the_paystack_checkout_in_a_mobile_webview/#why-use-a-webview https://paystack.com/docs/guides/using_the_paystack_checkout_in_a_mobile_webview/#why-use-a-webview . >> >> — >> Reply to this email directly, view it on GitHub >> <#15 https://github.com/popekabu/pay_with_paystack/issues/15 (comment) <#15 (comment) https://github.com/popekabu/pay_with_paystack/issues/15#issuecomment-1855998782>>, or unsubscribe >> https://github.com/notifications/unsubscribe-auth/AGMACNMPF57J3HXL732W4FDYJMHLZAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVHE4TQNZYGI https://github.com/notifications/unsubscribe-auth/AGMACNMPF57J3HXL732W4FDYJMHLZAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVHE4TQNZYGI https://github.com/notifications/unsubscribe-auth/AGMACNMPF57J3HXL732W4FDYJMHLZAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVHE4TQNZYGI https://github.com/notifications/unsubscribe-auth/AGMACNMPF57J3HXL732W4FDYJMHLZAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVHE4TQNZYGI . >> You are receiving this because you commented.Message ID: >> @.> >> I am sorry if I'm ignorant of this as I am a newbie in programming but from your dependency the callback url is a String and I don't know hpw to create that callback url string. And I certainly don't know how to set it in the paystack dashboard. Please help — Reply to this email directly, view it on GitHub <#15 (comment) https://github.com/popekabu/pay_with_paystack/issues/15#issuecomment-1856185442>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGMACNMNBHLYEP7MCAB5ZX3YJMUBRAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWGE4DKNBUGI https://github.com/notifications/unsubscribe-auth/AGMACNMNBHLYEP7MCAB5ZX3YJMUBRAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWGE4DKNBUGI . You are receiving this because you commented.Message ID: @.***>

I'm a bit confused. I'm creating a mobile app. So I want that after successful or failure of payment I want to be redirected to my app, not to a website. Is that possible?

— Reply to this email directly, view it on GitHub https://github.com/popekabu/pay_with_paystack/issues/15#issuecomment-1856251744, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGMACNPEQKTMEC4ZBIKPZGLYJMXWRAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWGI2TCNZUGQ . You are receiving this because you commented.Message ID: @.***>

ebenoasis commented 8 months ago

Usually the callbackurl in paystack is for backend related stuffs. In our case we don’t want to create a backend server for that. It’s fine if it’s a mobile app. Just make sure it’s any url that’s the same in the paystack dashboard and the in your code. On Thu, 14 Dec 2023 at 5:14 PM, ebenoasis @.> wrote: A call back url is a place you want paystack to redirect you to after the user has failed or successfully made a transaction. It can be any url of your choice. Can be Google.com or anything. You will need to define your callback url in your paystack admin dashboard and then declare it as a string in the plugin parameter for callbackurl. Once the user fails or successfully makes a transaction. Paystack redirects him there. Since the callback url in paystack js the same callback url in your code. It will make a check and then either executes a transaction successful transaction or failed transaction function. Hope it makes sense … <#m-3366040474327510720> On Thu, 14 Dec 2023 at 4:43 PM, ebenoasis @.> wrote: Set your callback url in your paystack dashboard and set the same in your code. Should work On Thu, 14 Dec 2023 at 2:56 PM, Daniel Kabu Asare @. > wrote: … <#m-4346951606204671141> Set your callback url in your paystack dashboard and set the same in your code. Should work On Thu, 14 Dec 2023 at 2:56 PM, Daniel Kabu Asare @.> wrote: > Set your callback url in your paystack dashboard and define it in your > code. It should work. It works for me here. > > On Thu, 14 Dec 2023 at 2:54 PM, ebenoasis @.> > wrote: > >> I think the issue is from paystack >> >> the URL doesn't redirect when the transaction is complete or not complete >> >> so the NavigationDelegate in the webview cannot detect the "cancel URL" >> or "paystack.co/close http://paystack.co/close http://paystack.co/close http://paystack.co/close" >> >> I have tried to inspect it, it looks like they somehow go to a >> verification page without changing the URL, and they get a response aswell >> >> I contacted paystack support and I was told the problem is from how the >> dependency was developed and it's not from them. can you please check and >> help again please. >> This is the message from paystack support: >> >> Thank you for your response. >> >> Since the issue is happening in the library, it is not a Paystack issue >> but an issue from how the developer built the library. The developer needs >> to confirm how he handles callbacks and what API he is making use of, as >> that might be the issue. The library was built externally and not by >> Paystack so we might not have the bandwidth to look into this. >> >> I have however suggested another alternative to this library for you to >> use webview library as documented here >> https://paystack.com/docs/guides/using_the_paystack_checkout_in_a_mobile_webview/#why-use-a-webview https://paystack.com/docs/guides/using_the_paystack_checkout_in_a_mobile_webview/#why-use-a-webview https://paystack.com/docs/guides/using_the_paystack_checkout_in_a_mobile_webview/#why-use-a-webview https://paystack.com/docs/guides/using_the_paystack_checkout_in_a_mobile_webview/#why-use-a-webview >> . >> >> — >> Reply to this email directly, view it on GitHub >> <#15 <#15> (comment) <#15 (comment) <#15 (comment)>>>, >> or unsubscribe >> https://github.com/notifications/unsubscribe-auth/AGMACNMPF57J3HXL732W4FDYJMHLZAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVHE4TQNZYGI https://github.com/notifications/unsubscribe-auth/AGMACNMPF57J3HXL732W4FDYJMHLZAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVHE4TQNZYGI https://github.com/notifications/unsubscribe-auth/AGMACNMPF57J3HXL732W4FDYJMHLZAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVHE4TQNZYGI https://github.com/notifications/unsubscribe-auth/AGMACNMPF57J3HXL732W4FDYJMHLZAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVHE4TQNZYGI >> . >> You are receiving this because you commented.Message ID: >> @.> >> > I am sorry if I'm ignorant of this as I am a newbie in programming but from your dependency the callback url is a String and I don't know hpw to create that callback url string. And I certainly don't know how to set it in the paystack dashboard. Please help — Reply to this email directly, view it on GitHub <#15 (comment) <#15 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGMACNMNBHLYEP7MCAB5ZX3YJMUBRAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWGE4DKNBUGI https://github.com/notifications/unsubscribe-auth/AGMACNMNBHLYEP7MCAB5ZX3YJMUBRAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWGE4DKNBUGI . You are receiving this because you commented.Message ID: @.**> I'm a bit confused. I'm creating a mobile app. So I want that after successful or failure of payment I want to be redirected to my app, not to a website. Is that possible? — Reply to this email directly, view it on GitHub <#15 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGMACNPEQKTMEC4ZBIKPZGLYJMXWRAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWGI2TCNZUGQ . You are receiving this because you commented.Message ID: @.>

Thanks. I think I got it and it worked. Thanks a lot

popekabu commented 8 months ago

Am glad it finally worked for you. Please do well to star the plugin. Thank you very much.

On Thu, 14 Dec 2023 at 5:22 PM, ebenoasis @.***> wrote:

Usually the callbackurl in paystack is for backend related stuffs. In our case we don’t want to create a backend server for that. It’s fine if it’s a mobile app. Just make sure it’s any url that’s the same in the paystack dashboard and the in your code. … <#m2299350385283309204> On Thu, 14 Dec 2023 at 5:14 PM, ebenoasis @.*> wrote: A call back url is a place you want paystack to redirect you to after the user has failed or successfully made a transaction. It can be any url of your choice. Can be Google.com or anything. You will need to define your callback url in your paystack admin dashboard and then declare it as a string in the plugin parameter for callbackurl. Once the user fails or successfully makes a transaction. Paystack redirects him there. Since the callback url in paystack js the same callback url in your code. It will make a check and then either executes a transaction successful transaction or failed transaction function. Hope it makes sense … <#m-3366040474327510720> On Thu, 14 Dec 2023 at 4:43 PM, ebenoasis @.> wrote: Set your callback url in your paystack dashboard and set the same in your code. Should work On Thu, 14 Dec 2023 at 2:56 PM, Daniel Kabu Asare @. > wrote: … <#m-4346951606204671141> Set your callback url in your paystack dashboard and set the same in your code. Should work On Thu, 14 Dec 2023 at 2:56 PM, Daniel Kabu Asare @.> wrote: > Set your callback url in your paystack dashboard and define it in your > code. It should work. It works for me here. > > On Thu, 14 Dec 2023 at 2:54 PM, ebenoasis @.> > wrote: > >> I think the issue is from paystack >> >> the URL doesn't redirect when the transaction is complete or not complete >> >> so the NavigationDelegate in the webview cannot detect the "cancel URL" >> or "paystack.co/close http://paystack.co/close http://paystack.co/close http://paystack.co/close http://paystack.co/close http://paystack.co/close http://paystack.co/close http://paystack.co/close" >> >> I have tried to inspect it, it looks like they somehow go to a >> verification page without changing the URL, and they get a response aswell >> >> I contacted paystack support and I was told the problem is from how the >> dependency was developed and it's not from them. can you please check and >> help again please. >> This is the message from paystack support: >> >> Thank you for your response. >> >> Since the issue is happening in the library, it is not a Paystack issue >> but an issue from how the developer built the library. The developer needs

to confirm how he handles callbacks and what API he is making use of, as that might be the issue. The library was built externally and not by >> Paystack so we might not have the bandwidth to look into this. >> >> I have however suggested another alternative to this library for you to >> use webview library as documented here >> https://paystack.com/docs/guides/using_the_paystack_checkout_in_a_mobile_webview/#why-use-a-webview https://paystack.com/docs/guides/using_the_paystack_checkout_in_a_mobile_webview/#why-use-a-webview https://paystack.com/docs/guides/using_the_paystack_checkout_in_a_mobile_webview/#why-use-a-webview https://paystack.com/docs/guides/using_the_paystack_checkout_in_a_mobile_webview/#why-use-a-webview https://paystack.com/docs/guides/using_the_paystack_checkout_in_a_mobile_webview/#why-use-a-webview https://paystack.com/docs/guides/using_the_paystack_checkout_in_a_mobile_webview/#why-use-a-webview https://paystack.com/docs/guides/using_the_paystack_checkout_in_a_mobile_webview/#why-use-a-webview https://paystack.com/docs/guides/using_the_paystack_checkout_in_a_mobile_webview/#why-use-a-webview . >> >> — >> Reply to this email directly, view it on GitHub >> <#15 https://github.com/popekabu/pay_with_paystack/issues/15 <#15 https://github.com/popekabu/pay_with_paystack/issues/15> (comment) <#15 https://github.com/popekabu/pay_with_paystack/issues/15 (comment) <#15 (comment) https://github.com/popekabu/pay_with_paystack/issues/15#issuecomment-1855998782>>>, or unsubscribe >> https://github.com/notifications/unsubscribe-auth/AGMACNMPF57J3HXL732W4FDYJMHLZAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVHE4TQNZYGI https://github.com/notifications/unsubscribe-auth/AGMACNMPF57J3HXL732W4FDYJMHLZAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVHE4TQNZYGI https://github.com/notifications/unsubscribe-auth/AGMACNMPF57J3HXL732W4FDYJMHLZAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVHE4TQNZYGI https://github.com/notifications/unsubscribe-auth/AGMACNMPF57J3HXL732W4FDYJMHLZAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVHE4TQNZYGI https://github.com/notifications/unsubscribe-auth/AGMACNMPF57J3HXL732W4FDYJMHLZAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVHE4TQNZYGI https://github.com/notifications/unsubscribe-auth/AGMACNMPF57J3HXL732W4FDYJMHLZAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVHE4TQNZYGI https://github.com/notifications/unsubscribe-auth/AGMACNMPF57J3HXL732W4FDYJMHLZAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVHE4TQNZYGI https://github.com/notifications/unsubscribe-auth/AGMACNMPF57J3HXL732W4FDYJMHLZAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVHE4TQNZYGI . >> You are receiving this because you commented.Message ID: >> @.> >> I am sorry if I'm ignorant of this as I am a newbie in programming but from your dependency the callback url is a String and I don't know hpw to create that callback url string. And I certainly don't know how to set it in the paystack dashboard. Please help — Reply to this email directly, view it on GitHub <#15 https://github.com/popekabu/pay_with_paystack/issues/15 (comment) <#15 (comment) https://github.com/popekabu/pay_with_paystack/issues/15#issuecomment-1856185442>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGMACNMNBHLYEP7MCAB5ZX3YJMUBRAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWGE4DKNBUGI https://github.com/notifications/unsubscribe-auth/AGMACNMNBHLYEP7MCAB5ZX3YJMUBRAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWGE4DKNBUGI https://github.com/notifications/unsubscribe-auth/AGMACNMNBHLYEP7MCAB5ZX3YJMUBRAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWGE4DKNBUGI https://github.com/notifications/unsubscribe-auth/AGMACNMNBHLYEP7MCAB5ZX3YJMUBRAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWGE4DKNBUGI . You are receiving this because you commented.Message ID: @.**> I'm a bit confused. I'm creating a mobile app. So I want that after successful or failure of payment I want to be redirected to my app, not to a website. Is that possible? — Reply to this email directly, view it on GitHub <#15 (comment) https://github.com/popekabu/pay_with_paystack/issues/15#issuecomment-1856251744>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGMACNPEQKTMEC4ZBIKPZGLYJMXWRAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWGI2TCNZUGQ https://github.com/notifications/unsubscribe-auth/AGMACNPEQKTMEC4ZBIKPZGLYJMXWRAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWGI2TCNZUGQ . You are receiving this because you commented.Message ID: @.***>

Thanks. I think I got it and it worked. Thanks a lot

— Reply to this email directly, view it on GitHub https://github.com/popekabu/pay_with_paystack/issues/15#issuecomment-1856263626, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGMACNO36XXUXQMQGXTQCRDYJMYWDAVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWGI3DGNRSGY . You are receiving this because you commented.Message ID: @.***>

ebenoasis commented 8 months ago

Sure. I will surely do that

popekabu commented 8 months ago

Thanks a lot.

On Thu, 14 Dec 2023 at 5:49 PM, ebenoasis @.***> wrote:

Sure. I will surely do that

— Reply to this email directly, view it on GitHub https://github.com/popekabu/pay_with_paystack/issues/15#issuecomment-1856319167, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGMACNNXE5HZORYDHWBCHHLYJM3Z5AVCNFSM6AAAAABAJL2PWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWGMYTSMJWG4 . You are receiving this because you modified the open/close state.Message ID: @.***>