Stripe payment with laravel [closed] - php

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I am creating a system with laravel 7 and I need both subscription service and one time payment. I am new to stripe. For one time payment I am using stripe charge method and it is working fine. For subscription I am using again charge method. But I have created a cron job which runs every day and check if one month or the selected day is passed cut fee from the customer account. The thing is I am confuse here what if due to any reason the payment is failed I need here to send the email to stripe admin whose account is working and the customer that the payment is failed. But in response of payment charged I cant get status of payment. How can I check it in cron job? On stripe documentation it is giving js code. I cant use javascript in cron i need this in php i.e (laravel).
I get this link but it is in javascript.
Stripe Link

Rather than running automated jobs to create recurring payments, you should use Subscriptions, which are supported by Laravel and you can read about creating subscriptions here.
When future subscription invoice payments fail, you have several options for handling the recovery flow. Laravel has some additional documentation here.

Related

Signifyd credit card antifraud service Integration in X-Cart 5 [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I'm trying to implement a third party library - signifyd for my client. Signifyd is a third party service for credit card fraud prevention.
I created a X-Payments trial account for testing purpose and enabled authorizenet payment method(sandbox mode). Then I installed xpaymentsconnector module in my xcart store.
Now I need to fetch credit card details that customer entered and pass those informations with order details to api.
I checked xpaymentsconnector module.
$info = $this->client->requestPaymentInfo($transaction->getDataCell('xpc_txnid')->getValue());
Above code returns basic paymnet info. Refer: https://www.x-payments.com/help/X-Payments:Payment_information_request
$info = $this->client->requestPaymentAdditionalInfo($transaction->getDataCell('xpc_txnid')->getValue());
This is the xpaymnetconnector api call to fetch additional info. Refer: https://www.x-payments.com/help/X-Payments:Detailed_payment_and_transaction_information_request. As per doc it returns all details including cardholder name.
I tried to call PaymentAdditionalInfo API but it doesn't return cardholdername. I tried it with sample code also. Getting same result. why it doesnot return cardholder name or it returns name for live transaction only?
How can I retrieve cardholder name also.
Actually X-Cart 5 never touches credit card information so it is hard to say how you can submit this type of data to Signifyd. You would need to integrate Signifyd into appropriate payment module that integrates with X-Cart 5 and does touches credit card data.

How can we refund for recurring payment in paypal [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am working with the recurring payment in paypal, all thins are working fine for me, but i am stuck with one issue, i need to do refund, i research for that in paypal, i read that we need transactionid for refund, but when we use recurring payment in response they doesn't give transactionid, when we create profile for recurring payment paypal provide us ProfileID which is unique identifiers, so how can we refund payment for recurring profile ?
It's recommended that you use IPN to save a local history of payments related to profile IDs. If you need to refund a particular transaction you could then pull the transaction ID out of this history.
PayPal provides a basic IPN template here, and there are other more complete solutions available on GitHub / Packagist.
Another option would be to use the TransactionSearch API. You can pass in a Profile ID to get all of the related payments associated with that profile back, so then you could pull the transaction ID of the one you need.
Of course, for the actual refund you can use the RefundTransaction API.
All of these API calls can be made easily with our PayPal PHP SDK if you'd like to take a look at that.

PayPal With Automated Delivery For Digital Services [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I recently started a company, selling digital items. And I'm not too sure where I can start for automating the checkout process. I will need 4 custom variables: name, email, package, Textfield; from my customers. I will then send the digital item to their email.
I have currently set up, a PayPal button with two custom fields. I'm seeking for an easier solution maybe integrating a PayPal express check out with custom fields, but I'm not too savvy with PayPal's Api.
Any sort of guidance or code snippet examples will be helpful!
Yes, you're on the right track. I would recommend the Express Checkout API. This PayPal PHP SDK will make the API calls very quick and easy. There are demo kits available for it, too, but the samples it comes with may be enough for you to get going.
You can build your form however you want to gather whatever detail you need. Save a record of that in your DB prior to sending the user over to PayPal. This way you can include the record ID in the payment request to PayPal.
When the payment is completed you can use IPN to automatically process and deliver the purchase. You can use that to generate and send custom email notifications with attachments, update your database, hit 3rd party web services, etc. automatically, in real-time.

How to take a transaction cut from every paypal transaction? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am having a technical problem. I am capable of making a paypal transaction call from my php website. It is an auction website. Sellers put their product on line for auction, and buyers bit. For each successful auction, the payment can be processed as a PayPal transaction.
But how can I take a cut (service fee, $1)? I am thinking of two API calls, but that requires the buyers to pay twice.
Is there any way to do it with PayPal or I need another transaction service, like Amazon Flexible Payment?
Thank you very much.
There's no way of routing a part of the payment from a user's PayPal transaction to yourself. You might be better off selling vouchers ahead of time that user's can use for each transaction. That way they're not forced to make two transactions at time of purchase.
You could initiate a transaction from your account to the payee, this wouldn't require the user to commit two transactions.
I strongly recommend Stripe.com whenever I get a chance too. The API is very easy. You can accept payments with Stripe, then when the transaction clears, have your server send the remainder to the Paypal account of the seller.

Store client data in Paypal [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
We developed a E-Commerce website. Customer will come and purchase products in our site, we get payment by paypal-pro payment gateway.
Our need is, any possible to store credit-card data in payal for the particular account/user. If saved that user give all the details in the site at first time instead of giving every time of purchase.
Kindly let me know if it is available in payal or any other payment gateway.
In other words:
In paypal pro, user gives their card details, at that time we need to save those details. Next time if that user comes and purchase a product, we will get the amount from the card that was we already saved.It is not good to save those details in our server. So I need to save those details in paypal or any other payment systems.
If the client is based in the US then they can get a true merchant account and use a payment gateway like Authorize.Net. Authorize.Net offer the Customer Information Manager (CIM) API which allows for the storage of credit card details on their server thus reducing PCI compliance and security issues.

Categories