Payment with credit card execution - ruby

I've created a payment with credit card as shown at: https://github.com/paypal/PayPal-Ruby-SDK#create-payment
Do i need payer_id to execute the payment?

The answer is no. It all depends on the payment method used... For example paypal id, credit card object, credit card token (from paypal vault) all are methods that require you to post different information to paypal
Go to this page # https://github.com/paypal/PayPal-Ruby-SDK/tree/master/samples/payment
Look at the samples files "create_with_credit_card_token.rb", "create_with_credit_card.rb" "create_with_paypal.rb" There you should be able to find the information you need

Related

Paypal website payment hosted pro "Please select a valid card type." in iFrame

I am trying to update an existing Magento 1.9 EC site to start to use PayPal Website Payment Pro as payment method but am hitting an issue with the behaviour within the iframe.
I have created a sandbox account for both the buyer and business, the settings are working and I can make the payment if I use the "Pay with Paypal" button. The sandbox credit card also works if in the PayPal page I use it without being logged in.
But if I try to use the credit card in the iFrame I have the "Please select a valid card type." message show up. Invalid credit cards will not show that specific message.
It looks like it wants me to make an action to select Visa as the type, but the card type cannot be selected, it detects the number as a Visa card, greys out the other types and keeps the Visa one visible.
This seems to be all happening within the iFrame I use to host the result of the initial request which builds the form on the paypal site.
Also, the rest of the integration seems to be working, if we use the "Pay with Paypal" button, complete the credit card payment on that page we go back to the proper return page and the order records the payment in Magento.
Which makes me wonder why there is only an issue within that iFrame?
Is that solution not working? Should we look at some of the other options?
Log in to your developer paypal account.
choose the merchant account you have created and click the profile tab
Use the credit which is displayed under Funding Tab..
You can add more cards by logging into your sandbox.paypal.com using merchant account u created and goto profile->credit cards which is under financial information
Hope this helps

Braintree : How can i select a payment method and obtain a payment method nonce using a custom UI?

I am trying to use braintree for payments in a web application. The flow i'm after is :
user registration : create a Braintree customer, associate its id with the user
first payment : show a custom UI for the credit card information, use the Braintree tutorial for adding a credit card and make the payment.
second payment : show a list of payment methods for the customer. When he/she selects one, make a payment using the selected payment method.
I am stumped at how i'm supposed to implement the second payment part. Assuming i keep payment methods info and show the client a list of payment methods, how do i obtain a payment method nonce i need to be able to execute a sale Transaction?
To clarify, i'm not using the Dropin UI because :
i need more information than it can show when entering a credit card (like cardholder)
i need to have a custom look-and-feel ui in different languages
I've read the Braintree guides and reference and i couldn't find and resource for a custom ui where i can reuse the payment method information.
Any input is highly appreciated.
I work at Braintree. If you need more help, I suggest you email our support team.
When you store a credit card (by passing a nonce to credit card or payment method create) the response you get back contains a token. You can store this token permanently and use it in the future to make payments on the same card.
You can charge the user with his payment token or customer id: https://developers.braintreepayments.com/guides/transactions/ruby#sale-with-vaulted-payment-methods
result = Braintree::Transaction.sale(
:payment_method_token => "the_token",
:amount => "10.00"
)
# or
result = Braintree::Transaction.sale(
:customer_id => "the_customer_id",
:amount => "10.00"
)

Recurring Payments - Trial without card

We're developing a system whereby the user will be sign-up and have a 3 month trial without entering card details. Once the trial period is up they get sent an e-mail asking them to come back and register card details in order to setup a recurring payment in order to continue accessing the site.
Is it possible to configure recurring payments with Braintree such that we don't provide a card for the trial period and then configure one upon notification that it has expired?
Thanks!
I work at Braintree. If you want more information than you can easily get on Stack Overflow, please reach out to our support team.
Braintree subscriptions require a credit card to be created. That way, the transition from trial period to billing doesn't require any action by the customer or merchant. Since our core service is billing credit cards, that's what subscriptions are designed to do.
In your case, it sounds like you can create a subscription in your application, and only link it to a Braintree subscription if / when credit card details are entered. You'll need to handle tracking the three month time limit yourself.

Magento make payment using webservice/API by getting credit card information of customer

I am providing web services of magento for POS application.Pos app will swap customer credit card and send it to magento database.Is there any way to get customer credit card information and make payment at end of magento.In simple I want to make a API that get customer credit card information and make payment at end of magento.means POS app will give credit card detail(total amount of customer shopping,customer credit card information) and I have to make payment for that amount and for that customer at end of magento.Sorry for my english.

Can Google Checkout support the Parallel Payments like Paypal

I have created a Event website and here registered user can create event and their tickets and when an event is created then other users purchases tickets. when customer pays for the tickets then the payment goes to the two person ie. 1(Ticket Owner),2(Website Owner). there are two payment gateways one is Paypal and second is Google Checkout.
I have implement Paypal Parallel Payments for this and want to know that there are any options in Google Checkout like Paypal for this type payment. please let me know as soon aspossible.
Thanks
As far as I know there is no equivalent to PayPal Parallel Payments in Google Checkout.

Resources