safaricom / mpesa-java-sdk

A java library for the Mpesa REST API
36 stars 68 forks source link

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

Open av12 opened 6 years ago

av12 commented 6 years ago

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

nellycheboi commented 6 years ago

@av12 Any luck? I am having the same issue

daviek19 commented 6 years ago

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 notifications@github.com 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:daviek19@gmail.com

av12 commented 6 years ago

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

mbuguanjane commented 5 years ago

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

willie84 commented 4 years ago

@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.

daniel-nzuma commented 4 years ago

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

AustineGwa commented 4 years ago

@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 commented 4 years ago

Assign me this task

kathukyabrian commented 2 years ago

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