troopers / mangopaybundle Goto Github PK
View Code? Open in Web Editor NEWMangopay api implementation for Symfony
Home Page: http://troopers.agency
License: MIT License
Mangopay api implementation for Symfony
Home Page: http://troopers.agency
License: MIT License
The bundle use ORM to persist entities but never use persisted object.
Orm and persistence is responsibility of implementation and not of bundle.
this issue is a complement of previous #53 and mainly for last feature #59 / #58 .
We must clean bundle and document the good way to override and persist bundle models when it's a domain requirement
When I create an object that implements:
Troopers\MangopayBundle\Entity\UserInterface
When trying to create a user I get:
Call to undefined method Vendor\MyBundle\Model\PaymentManager\Provider\MangoPayAdapters\User::getId()
Adding a getId() method solves the problem, but the interface needs updating
Bonjour,
Votre plugin semble intéressant pour faciliter l'utilisation de MangoPay au sein d'un projet Symfony. Est-ce que sa maintenance est assurée sur le long terme ?
La documentation n'est pas très détaillée notamment concernant la configuration et les classes à implémenter (s'il y en a). Est-ce qu'il y a une autre source d'information ou des cas d'utilisation/démo ?
Merci pour votre retour.
Flavien
I'm trying to use you bundle to make a direct payment (using PaymentDirectHelper), and i'm trying to know what do i need to pass to create method.
Could you give me a basic example of how to use it please ?
Thanks a lot !
So it's not yet possible to download the version 2.0.3 :)
sorry to spam you with issue ^^'
i got this error when i try to submit a card form with this route : appventus_mangopaybundle_payment_new
message : Entity 'AppVentus\MangopayBundle\Entity\Order' has no field 'id'. You can therefore not call 'findOneById' on the entities' repository
Hello,
First many thanks for your bundle as Mango pay decided to not follow good practices by using composer!
However I'm having trouble installing your bundle... Could you help me please ?
This is what I did in my composer.json file :
...
"require": {
"php": ">=5.3.3",
"symfony/symfony": "~2.4",
"doctrine/orm": ">=2.2.3,<2.4-dev",
"doctrine/doctrine-bundle": "~1.2",
"twig/extensions": "~1.0",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~2.3",
"sensio/framework-extra-bundle": "~3.0",
"sensio/generator-bundle": "~2.3",
"incenteev/composer-parameter-handler": "~2.0",
"friendsofsymfony/user-bundle": "~2.0@dev",
"besimple/i18n-routing-bundle": "dev-master",
"facebook/php-sdk" : "*",
"friendsofsymfony/facebook-bundle": "dev-master",
"appventus/mangopay-bundle": "dev-master"
}
When I perform the php composer.phar update command this is what I got :
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for appventus/mangopay-bundle dev-master -> satisfiable by appventus/mangopay-bundle[dev-master].
- appventus/mangopay-bundle dev-master requires mangopay/mangopay2-php-sdk * -> no matching package found.
So I added the following line in my composer :
...
"require": {
...
"mangopay/mangopay2-php-sdk": "*",
"appventus/mangopay-bundle": "dev-master"
}
I have now the following error :
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package mangopay/mangopay2-php-sdk could not be found in any version, there may be a typo in the package name.
Problem 2
- Installation request for appventus/mangopay-bundle dev-master -> satisfiable by appventus/mangopay-bundle[dev-master].
- appventus/mangopay-bundle dev-master requires mangopay/mangopay2-php-sdk * -> no matching package found.
Thanks in advance for your help
The function $user->getWallet() used in the WalletHelper, should be defined throw an interface to apply to the user.
How do you manage to give a wallet from the userEntity? Injecting the wallet, injecting just a reference ?
$cardRegistration = new CardRegistration();
$this->get('troopers_mangopay.payment_helper')->createPreAuthorisation($cardRegistration);
as createPreAuthorization does not take a cardRegistration, i guess you meant:
$this->get('troopers_mangopay.card_registration_helper')->createCardRegistrationForUser($user);
Here's the error message I get when I try to do nothing more than a new of the bundle in the AppKernel
I'm using PHP7.0 and Symfony3.1
I've upgraded today to 2.0.1 of this bundle, but it was not working before either.
UserHelper::createMangoUser persist the $user after creating it MangoUserId but WalletHelper::createWalletForUser don't persist it.
It would be nice to have an identical behavior.
One of our projects rely on MangopayBundle. Tests written with Behat fail sometimes because the test environment call the API in order to get a wallet. The amount (Balance
) in this wallet is not fixed so it breaks tests that rely on this amount.
I think that it would be nice if we could configure MangopayBundle to bypass the API calls and return some given values instead. For example by specifying a given wallet id when we load the fixtures for one user.
For example, let's say we define a wallet with id 1
, then the MangopayBundle may detect that this value correspond to the test
environment and return the values (e.g. the amount) from our fixtures instead of calling the API.
Do you think it's doable and interesting?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.