Paypal payment transactions

Arulmani2001
Contributor
Contributor

I have created one payment using a REST API callout. Initially, that state was created. Then I was redirected to the approval URL and completed the payment. I have been redirected to the return URL. But I don't see any transaction history in both the sender and receiver accounts; that state remains created only. Where do I need to check?

Login to Me Too
16 REPLIES 16

MTS_Jennifer
Moderator
Moderator

Hello @Arulmani2001 ,

Thank you for posting to the PayPal Community. 

After you create the order, and the buyer approves the order, you need to send an API call to capture the payment for the order.

Below has the example:

https://developer.paypal.com/docs/api/orders/v2/#orders_capture

Once you capture the order you should see the transactions in the buyer and seller accounts in sandbox. If the email on the seller account in sandbox is not confirmed, you will not receive the payment. 

 

If you provide the merchant id for the sandbox seller account, I can confirm the email.

To locate your secure merchant ID:

  1. Log into the business sandbox account at https://sandbox.paypal.com
  2. Go to your Account Settings
  3. Click Business information under "Business profile." 

You'll find your ID next to "PayPal Merchant ID." 

 

Thank you,

Jennifer

MTS 

 

Login to Me Too

Arulmani2001
Contributor
Contributor

Thank you @MTS_Jennifer . my seller merchant ID is 7YHDCXUSLJFLA.

Login to Me Too

Arulmani2001
Contributor
Contributor

And also I'm not creating any orders. I'm just trying to send money to a business account from a personal account using this endpoint "https://api.sandbox.paypal.com/v1/payments/payment".

Another issue, I created a Draft invoice and send it to the recipient. I can see the invoice and am able to pay too after logging in to my sandbox account. I didn't receive any Email notification and Payment link through the mail.

Login to Me Too

MTS_Jennifer
Moderator
Moderator

Hello @Arulmani2001,

For Invoicing API draft invoices will not send any notifications. Once the Invoice is sent any email notifications will be in your Sandbox Notifications within  your Developer API Dashboard. As long as the account you are sending the notification to is associated with your Developer Dashboard.

 

Thanks,

Jennifer

PayPal

MTS

 

Login to Me Too

Arulmani2001
Contributor
Contributor

And also I'm not creating any orders. I'm just trying to send money to a business account from a personal account using this endpoint "https://api.sandbox.paypal.com/v1/payments/payment".

Initially, that state was created. Then I was redirected to the approval URL and completed the payment. I have been redirected to the return URL. But I don't see any transaction history in both the sender and receiver accounts; that state remains created only.

Could you please help me overcome this problem?

Login to Me Too

Arulmani2001
Contributor
Contributor

Then how non paypal account users will pay for the invoice? For example, if I'm sending one invoice to a customer who doesn't have an account with Paypal, how will he receive the invoice and pay for it?

Login to Me Too

Arulmani2001
Contributor
Contributor

Hi @MTS_Jennifer , Could you please help me?

 

Login to Me Too

Arulmani2001
Contributor
Contributor

Hi  @MTS_Jennifer,  Because of your poor support, I tried my integration with Razorpay, there everything is working fine, not like Paypal.

Login to Me Too

MTS_Chiranjeevi
Moderator
Moderator

Good day @Arulmani2001,

 

Apologies for the delay in the response. 

 

Please let me help you resolve your issue. 

 

1. Please perform the Capture Order API call or Execute API call to complete the payment flow. Once you capture the order you should see the transactions in both buyer and seller accounts in sandbox. Please login to your sandbox account to access the test payment attempts and sandbox email notifications.

 

https://developer.paypal.com/docs/api/orders/v2/#orders_capture

https://developer.paypal.com/docs/api/payments/v1/#payment_execute 

https://developer.paypal.com/docs/api/payments/v2/#authorizations_capture 

 

2. The transaction state will be marked as completed, once you Capture the funds via calling Capture Order API call or Execute API call.

 

3. Regarding Invoice query, PayPal system will send the Invoice via an email to customer(who doesn’t have account with PayPal) and he can proceed the payment via guest checkout accordingly. 

 

If your still facing any type of technical issues, please create a MTS ticket via - https://www.paypal-support.com/s/?language=en_US  with the detail information and error details.

 

Sincerely,

Chiranjeevi

PayPal/Braintree MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.