Payments are hard, it's no coincidence that only a handful of tech companies do it well despite it being one of the more lucrative areas to do business in.
Makes sense for Amazon to work with a market leader in this case rather than spend years playing catch up. Perhaps in the long run they'll acquire Stripe instead of simply partnering.