mpesa-java-sdk icon indicating copy to clipboard operation
mpesa-java-sdk copied to clipboard

i am using b2c api. i am not getting call back url

Open av12 opened this issue 7 years ago • 9 comments

i am using b2c api. my request gests succsess but i am not getting call back url my request response is { "ConversationID": "AG_20180320_000079651564296dd839", "OriginatorConversationID": "17377-112278-1", "ResponseCode":"0", "ResponseDescription": "Accept the service request successfully." } my call back url is:http://shamba.exaact.co:9095/Shamba/mpesa/callback

av12 avatar Mar 20 '18 07:03 av12

@av12 Any luck? I am having the same issue

nellycheboi avatar Apr 02 '18 01:04 nellycheboi

Make sure you are not using production credentials. Generate credentials here https://developer.safaricom.co.ke/test_credentials

On Mon, Apr 2, 2018 at 4:10 AM, nellycheboi12 [email protected] wrote:

@av12 https://github.com/av12 Any luck? I am having the same issue

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/safaricom/mpesa-java-sdk/issues/2#issuecomment-377831796, or mute the thread https://github.com/notifications/unsubscribe-auth/AYAZSmhf3Vg0FPeedjm3XNYInBZzleQHks5tkXp3gaJpZM4Sxav3 .

--


Regards David, Tel : 0729003109, Email:[email protected]

daviek19 avatar Apr 03 '18 08:04 daviek19

i am using test credentials. my request get succsess. but i did not get call back url. i am using static ip.

av12 avatar Apr 15 '18 09:04 av12

Hey sir, which is the best java IDE to use because when i compile the code in netbeans still giving me error

mbuguanjane avatar Jun 21 '19 07:06 mbuguanjane

@mbuguanjane the best IDE to use for JAVA is is the IntelliJ Idea you will love it. It works so well with the Payments APIs.

willie84 avatar Dec 09 '19 12:12 willie84

Please note that a callback url should be a secure url ie https://somesite.com and NOT http as seen in your code Also your url should not contain the word mpesa or anything close to that as it will be rejected automatically..based on the docs

daniel-nzuma avatar Feb 05 '20 09:02 daniel-nzuma

@DahnChaser I think callback url is open to non ssl secured links the only restriction according to the documentation is validation url and confirmation url

AustineGwa avatar Feb 17 '20 05:02 AustineGwa

Assign me this task

AustineGwa avatar Feb 17 '20 05:02 AustineGwa

Make sure the request is originating from https also, I was facing the same issue

kathukyabrian avatar Feb 11 '22 15:02 kathukyabrian